Skip to main content
POST
/
eth_getBalance
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.
Get you own node endpoint todayStart 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.

Parameters

  • data — the 20-byte address to check for balance.
  • quantity or tag — integer block number, or the string latest, earliest, or pending.

Response

  • result — the balance of the account in wei, encoded as hexadecimal.

eth_getBalance code examples

const { 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();

Use case

A practical use case for eth_getBalance is displaying user wallet balances in DApps or checking if an account has sufficient funds before sending a transaction.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getBalance
params
string[]

Response

200 - application/json

The balance in wei.

jsonrpc
string
id
integer
result
string