eth
eth_getBalance
POST
/
id
jsonrpc
method
params
curl --request POST \
--url https://rpc1.taurus.axiomesh.io/
Returns the balance of the account of given address
Body
id
number
Serves as a unique identifier for the request
jsonrpc
string
Indicates the version of JSON-RPC being used
method
string
Represents the name of the remote procedure or method to be called
params
array
Contains the list of parameters passed to the remote method
address
string
A string representing the address (20 bytes) to check for balance
block
string
A hexadecimal block number, or the string “latest”, “earliest” or “pending” or the hash (32 bytes) of a block
Response
id
number
Returns unique identifier for the request
jsonrpc
string
Returns the version of JSON-RPC being used
balance
string
Hexadecimal of the current balance
curl 'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x2299E9B1a4e08b5d67017E19d75d3a24bb1074Df","latest"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
curl 'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x2299E9B1a4e08b5d67017E19d75d3a24bb1074Df","latest"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}