Updated on 2023-12-15 GMT+08:00

eth_getBalance

Introduction

This API returns the balance of the given account address. It consumes 15 CUs. In the dedicated edition, the throughput is 25,000 per second for 8 vCPUs and 32 GB memory and 48,000 per second for 16 vCPUs and 64 GB memory.

Parameter Description

Parameter

Type

Description

Address

String

The address to check for balance.

Block number

String

A hexadecimal block number, or the string (earliest, latest, or pending).

Return Value

A hexadecimal value of the current balance in the account at the given address, in wei.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"],"id":1}'