Skip to main content

eth_getBalance

Returns the balance of the account of given address.

Parameters

Address(string)required

hex encoded address

Block(object)required

Block number, tag, or block hash

Returns

hex encoded unsigned integer

Example request
await provider.request({
method: "eth_getBalance",
params: [
"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73",
"latest"
]
});
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x1cfe56f3795885980000"
}