eth_getBalance
Returns Ether balance of a given or account or contract
Params
(2)1. address (required)
string
Match pattern:
^0x[0-9,a-f,A-F]{40}$
2. blockNumber (required)
U64
(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
(getBalanceResult)string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Examples
Request
curl -X POST --data \
'{
"method": "eth_getBalance",
"params": [
"0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
"0x3635c9adc5de5c9bd8"