Skip to main content

eth_getBalance

POST 

/

Returns account balance for the specified address.

Parameters:

  • address: the address (20 bytes) to check for balance.
  • blockNumber: block number in hex format or the strings 'latest', 'earliest', 'pending'.

Returns:

  • result: a hex string representing the account balance.
note

For "pending" blocks, the API forwards requests to RPC nodes, and returns back to clients the responses received from the RPC nodes.

Request

Query Parameters

    apikey stringrequired

    Your API key

Body

    id integer
    jsonrpc string
    method string
    params string[]

Responses

Successful response

Schema

    jsonrpc string
    id integer
    result string
Loading...