eth_getBalance

Returns the balance of the account of given address.

Parameters

  1. DATA, 20 Bytes - address to check for the balance.

  2. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter

If the Node is Full Archive, then it's possible to query for the balance at a certain block height.

Example

// Request
curl -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x0000000000000000000000000000000000001000", "0x186A0"] ,"id":32}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"id": 32,
"result": "0xb284fbfd108db80"
}