eth_getBalance - Monad
This method returns the balance of an account in MON-wei (the smallest unit of MON).
Parameters
address
string
Yes
The address to check the balance of (20 bytes).
block
string
No
Block number in hex, or "latest", "earliest", "pending", "safe", "finalized" (default: "latest").
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", "latest"],
"id": "getblock.io"
}'import axios from 'axios';
const data = JSON.stringify({
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", "latest"],
"id": "getblock.io"
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data)))
.catch(error => console.log(error));Response
Response Parameters
result
string
The balance in MON-wei as a hexadecimal string.
Use Case
The eth_getBalance method is essential for:
Wallet applications displaying MON balances
Checking account funds before transactions
Portfolio tracking applications
DeFi protocol balance verification
Exchange integration for deposits/withdrawals
Gas payment verification
Error Handling
403
Forbidden
Missing or invalid ACCESS-TOKEN.
-32602
Invalid params
Invalid address format or block parameter.
-32000
Resource not found
Block not found.
Web3 Integration
Last updated
Was this helpful?