curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x0000000000000000000000000000000000001000",
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x0000000000000000000000000000000000001000",
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}Monad API method that returns the balance of the account at the given address. The balance is returned in wei, the smallest unit of MON.Documentation Index
Fetch the complete documentation index at: https://chainstack-mintlify-flesh-empty-pages.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
data — the 20-byte address to check for balance.quantity or tag — integer block number, or the string latest, earliest, or pending.result — the balance of the account in wei, encoded as hexadecimal.eth_getBalance code examplesconst { ethers } = require("ethers");
const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");
async function getBalance() {
const address = "0x0000000000000000000000000000000000001000";
const balance = await provider.getBalance(address);
console.log(`Balance: ${ethers.formatEther(balance)} MON`);
}
getBalance();
eth_getBalance is displaying user wallet balances in DApps or checking if an account has sufficient funds before sending a transaction.Was this page helpful?