Skip to main content
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.