state
eth_getBalance
Get balance
Returns the wei balance of an account at a given block.POST
https://eth.rpc.pinax.network/v1/<API_KEY>/
Required parameters
| Name | Type | Description |
|---|---|---|
addressrequired | address | 20-byte account address. e.g. 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
blockrequired | block | Block number (hex), tag (latest, earliest, pending, safe, finalized), or block hash. e.g. latest |
Request body
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBalance",
"params": [
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"latest"
]
}Response
200 OKHex-encoded wei balance.
{ "jsonrpc": "2.0", "id": 1, "result": "0x4563918244f40000" }