eth_getBalance
Returns the balance of the account of the given address.
Parameters:
DATA, 20 Bytes - address to check for balance.
QUANTITY|TAG - integer block number, or the string "latest"
Returns:
QUANTITY - integer of the current balance in wei.
Example:
// Request
curl https://scroll.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
Last updated
Was this helpful?