eth_getBalance

Returns the account balance of a given address.

Parameters

Object NameRequiredTypeDetail
ADDRESSStringAddress to check for balance.
BLOCK PARAMETERString/ObjectA hex code of an integer that represents the block number, "latest", "earliest" , "pending" , or hash of a block. The hash of a block is an object specified as: {"blockHash": "\<hash_value>"}. Learn more here.
"params": [
    "0x5ecddc1ac099074ae965d140a7c62bd71b7fc80a", 
    "0xef0c14940f208ee5d2928d4a46828e29e40bc0cfe260fe65f5c98f957e844730"
]

Result

A hex code of an integer that represents the current balance in Wei.

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "latest"],"id":0}'

Return

{
    "id": 0,
    "jsonrpc": "2.0",
    "result": "0x42e58e9592cae8d3f"
}
Language
Click Try It! to start a request and see the response here!