eth_getBalance
Returns the balance of the account of a given address.
Parameters
address
: [Required] 20 bytes. A string representing the address to check for balance.block parameter
: A string representing a block number, block hash, or one of the string tagslatest
,earliest
,pending
,safe
, orfinalized
. See the default block parameter.
Returns
A hexadecimal of the current balance (in wei) for the account at the given address.
Example
Request
curl https://rpc.testnet.radiustech.xyz/<YOUR-RPC-ENDPOINT> \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x9ac562D0B256D178155B878a54AdF1FFA13356fF",
"latest"
],
"id": 1
}
'
Response
{
"jsonrpc": "2.0",
"result": "0x1bc16d674ec80000",
"id": 1
}
Last updated
Was this helpful?