Skip to main content

eth_getBalance

Returns the balance of the account of the 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.
params: [
'0x407d73d8a49eeb85d32cf465507dd71d507100c1',
'latest'
]

Returns

QUANTITY - integer of the current balance for the given address in wei.

Example

Request

curl https://eth-mainnet.blastapi.io/<project-id> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":0}'

Result

{
"jsonrpc": "2.0",
"id": 0,
"result": "0x0234c8a3397aab58" // 158972490234375000
}