Comment on page
eth_getBalance
Returns ETH balance of the specified address in hexadecimal value, measured in wei
ADDRESS
, 20 Bytes - address to check for balance.QUANTITY|TAG
- integer block number, or the string "latest", "earliest" or "pending", see the default block parameter.
QUANTITY
- integer of the current balance for the given address in wei.curl --location 'https://rpc.eth.gateway.fm' \
--header 'Content-Type: application/json' \
--data '{
"id": 89,
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE",
"latest"
]
}'
{
"jsonrpc": "2.0",
"id": 89,
"result": "0x2d4e30b4d0eee41"
}
Last modified 7mo ago