Skip to main content
GET
/
?module=account&action=eth_get_balance
Get ETH Balance (JSON-RPC Format)
curl --request GET \
  --url 'https://eth.blockscout.com/api/?apikey=&module=account&action=eth_get_balance'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x0234c8a3397aab58"
}

Authorizations

apikey
string
query
required

Optional API key for increased rate limits.

Without API key:

  • 5 requests per second (shared pool)
  • No registration required

With API key:

  • 10 requests per second per key
  • Up to 3 free keys per account
  • Get your API key at https://blockscout.com (login required)

Usage: Add apikey=YOUR_KEY to any request query string.

Query Parameters

module
enum<string>
required

Module name (must be 'account')

Available options:
account
action
enum<string>
required
Available options:
eth_get_balance
address
string
required

The address of the account 40-character hexadecimal address hash with 0x prefix

Example:

"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"

block
enum<string>

Either the block number as a string, or one of latest, earliest or pending.

  • latest: latest balance in a consensus block
  • earliest: first recorded balance for the address
  • pending: latest balance in consensus or nonconsensus blocks
Available options:
latest,
earliest,
pending

Response

200 - application/json

Balance retrieved successfully

id
integer
Example:

1

jsonrpc
string
Example:

"2.0"

result
string

Balance in hex format (wei)

Example:

"0x0234c8a3397aab58"