eth_getBalance - Ethereum

eth_getBalance. Returns the balance of the account of a given address

eth_getBalance - ethereum [Value: 11CU]
Returns the balance of the account of a given address.
Use cases

Use cases

  • Check account balance before sending a transaction
  • Verify wallet balance for automated payments processing
  • Monitor account balance changes for security alerts
Constraints

Constraints

  • Requires a valid Ethereum account address
  • Node must be synchronized with the latest state
  • Network latency may delay balance retrieval
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
    --url https://eth.drpc.org \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '
{
 "id": 1,
 "jsonrpc": "2.0",
 "params": [
   "0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8",
   "latest"
 ],
 "method": "eth_getBalance"
}
'
Copy
Response
200
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x1"
  }
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
object
addressstring
Address to check for balance.
blockNumberstring
The block number or block hash to search up to
  • latest [default] - the blockchain's most recent block
  • safe - a block validated by the beacon chain
  • finalized - a block confirmed by over two-thirds of validators
  • earliest - the first or genesis block
  • pending - transactions broadcasted but not yet included in a block

Response

200

Response params

object
idinteger
jsonrpcstring
resultstring
The ETH balance of the specified address in hexadecimal value, measured in wei.