๐Ÿ”ต Base
eth_getBalance

eth_getBalance RPC Method

The eth_getBalance method fetches the current native balance (in wei) of any wallet address on Base.
It returns the balance of ETH on Base, not ERC-20 tokens.

โš ๏ธ

eth_getBalance only returns the native token balance (ETH on Base).
It does not return balances of ERC-20 or other tokens.

Need RPC API keys?

Get 12.5M archival requests for free today.


๐Ÿ”ง Parameters

address (required)

The 20-byte wallet address you want to query.

blockNumber or tag (required)

Use a hex block number or one of the tags:
"latest", "earliest", "pending".


๐Ÿ“ฅ Returns

  • balance โ€” Wallet balance in wei, returned as a hex string.
    Example: "0x19451085df7bc276d" = 181102330274593643789 in wei

๐Ÿ“ค Request

POST https://base-mainnet.chainnodes.org/YOUR-API-KEY

โœ… Replace YOUR-API-KEY with your key from the CHAINNODES Dashboard (opens in a new tab).
โœ… You may replace base-mainnet with another supported network if needed.


๐Ÿ’ก Confusing?

Ask our experienced blockchain developers in Telegram

๐Ÿงช Example

curl https://base-mainnet.chainnodes.org/YOUR-API-KEY \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc":"2.0",
    "method":"eth_getBalance",
    "params": ["0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5", "latest"],
    "id":1
  }'

๐Ÿ“ฆ Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x19451085df7bc276d"
}

๐Ÿ› ๏ธ Use Cases

  • Check if a wallet has enough ETH on Base to cover gas fees
  • Display a user's current ETH balance in wallets and dApps
  • Monitor ETH balance changes for accounts and contracts
  • Validate fund availability before sending a transaction