curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"id": 1,
"params": [
"0xF977814e90dA44bFA03b6295A0616a897441aceC",
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
Base API method eth_getBalance
retrieves the balance of an account at a given block. This method is essential for applications that need to display or utilize the current balance of an Ethereum address.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
address
— the address to get the balance for.block
— the block number (in hexadecimal) or one of the strings "earliest"
, "latest"
, or "pending"
, indicating the state to consider. The default is "latest"
.result
— the balance of the account in Wei, as a hexadecimal string.The eth_getBalance
method is essential for:
The balance of the account
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"id": 1,
"params": [
"0xF977814e90dA44bFA03b6295A0616a897441aceC",
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"id": 1,
"params": [
"0xF977814e90dA44bFA03b6295A0616a897441aceC",
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
Base API method eth_getBalance
retrieves the balance of an account at a given block. This method is essential for applications that need to display or utilize the current balance of an Ethereum address.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
address
— the address to get the balance for.block
— the block number (in hexadecimal) or one of the strings "earliest"
, "latest"
, or "pending"
, indicating the state to consider. The default is "latest"
.result
— the balance of the account in Wei, as a hexadecimal string.The eth_getBalance
method is essential for:
The balance of the account
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"id": 1,
"params": [
"0xF977814e90dA44bFA03b6295A0616a897441aceC",
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}