eth_getBalance

Returns the balance of the account of given address.

Parameters

  • DATA, 20 Bytes - address to check for balance.
  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter.
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBalance",
  "params": [
    "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
    "latest"
  ]
}'

Returns

  • QUANTITY - integer of the current balance in wei.
{"jsonrpc":"2.0","id":1,"result":"0x0"}

Try Yourself

Language
Click Try It! to start a request and see the response here!