How to Check & Monitor ERC-20 Token Balances
Check any ERC-20 token balance by hand in under a minute, then let Chainitor's ERC-20 Balance Monitor watch it and alert you when it crosses a threshold.
Every ERC-20 token contract keeps its own ledger of who holds how much. To check a balance you ask that contract, either through a block explorer or by calling its balanceOf function. Below are three ways to do it, followed by how to stop checking by hand.
How to check an ERC-20 token balance
1. With a block explorer (no code)
- Open Etherscan (or the explorer for your chain: BscScan, PolygonScan, Arbiscan, Optimistic Etherscan, BaseScan).
- Paste the wallet address into the search bar.
- Open the Token Holdings dropdown on the address page to see every ERC-20 token the wallet holds and its balance.
- For one specific token, open the token's contract page, go to Contract ā Read Contract, and call
balanceOfwith the wallet address.
2. Call balanceOf(address) and divide by 10decimals
balanceOf(address) returns an integer in the token's smallest unit. Divide it by 10 to the power of the token's decimals() to get the human-readable amount. USDC has 6 decimals, so a raw value of 1500000000 is 1,500 USDC; most other tokens use 18 decimals. Reading a balance is a free eth_call and needs no wallet or gas.
With ethers.js v6:
import { ethers } from 'ethers'; // ethers v6
// ESM module or Node REPL (top-level await)
const provider = new ethers.JsonRpcProvider('https://ethereum-rpc.publicnode.com');
const abi = [
'function balanceOf(address owner) view returns (uint256)',
'function decimals() view returns (uint8)',
'function symbol() view returns (string)',
];
const token = new ethers.Contract('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', abi, provider);
const wallet = '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045';
const [raw, decimals, symbol] = await Promise.all([
token.balanceOf(wallet),
token.decimals(),
token.symbol(),
]);
// raw is an integer in the token's smallest unit; formatUnits divides by 10^decimals
console.log(`${ethers.formatUnits(raw, decimals)} ${symbol}`); 3. From the command line with Foundry cast
# Raw balance (smallest unit)
cast call 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \
"balanceOf(address)(uint256)" 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 \
--rpc-url https://ethereum-rpc.publicnode.com
# The token's decimals, to convert the raw value
cast call 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 "decimals()(uint8)" \
--rpc-url https://ethereum-rpc.publicnode.com
# Convert a raw value using those decimals (USDC has 6)
cast format-units 1500000000 6 # 1500.000000
The same calls work on any EVM chain: swap the token address and the --rpc-url. On BNB Chain, tokens follow BEP-20, which is ERC-20 compatible.
4. Automate it with an alert
A one-off check tells you the balance now. If you need to know when a treasury's USDC drops below a floor, or when a payment wallet receives tokens, you would otherwise have to run that script on a schedule and wire it to a notification. Chainitor's ERC-20 Balance Monitor does that for you: it calls balanceOf on a schedule and alerts you via email, Slack, Telegram, PagerDuty, or webhook when the balance crosses your threshold.
What is an ERC-20 Balance Monitor?
An ERC-20 Balance Monitor watches how much of one ERC-20 token one wallet address holds. You choose the token contract, the wallet, and a threshold; Chainitor checks the balance every 5 minutes on the Starter plan or every minute on the Pro plan, and alerts you when it goes above or below that threshold.
Key Features
- Any ERC-20 token: track a token by its contract address
- Scheduled checks: every 5 minutes (Starter) or every minute (Pro)
- Custom thresholds: alert when a balance goes above or below an amount you set
- Many tokens and wallets: one monitor per token and wallet pair, as many as your plan allows
- Decimal precision: balances are converted using each token's own decimals
- Balance history: 30 days of check history on Starter, 1 year on Pro
Popular ERC-20 Tokens
- Stablecoins: USDC, USDT, DAI, FRAX
- DeFi Tokens: UNI, COMP, AAVE, CRV
- Governance Tokens: MKR, SNX, YFI
- Wrapped Assets: WETH, WBTC
- Custom Tokens: any ERC-20 token by contract address
Native gas tokens such as ETH, BNB and POL are not ERC-20 tokens. To watch those, use the Balance Monitor.
Use Cases
- Treasury management: alert when stablecoin reserves fall below a floor
- Payment monitoring: know when a wallet's token balance rises after an incoming payment
- DeFi yield tracking: watch a rewards balance grow past a target
- Token vesting: watch a vesting contract's balance as tokens unlock
- Security monitoring: catch an unexpected drop in a wallet's token holdings
Supported Networks
- Ethereum (ERC-20 standard)
- Polygon
- BNB Chain (BEP-20, ERC-20 compatible; USDT and USDC there use 18 decimals)
- Arbitrum
- Optimism
- Base
- Robinhood Chain (tokenized stocks and other assets, added by contract address)
Ethereum, Polygon, BNB Chain, Arbitrum, Optimism and Base also have public testnets. See all monitors by chain.
Getting Started
- Sign up for a Chainitor account
- Create a new ERC-20 Balance Monitor
- Enter the wallet address you want to monitor
- Specify the ERC-20 token contract address
- Set your alert threshold and notification channels
- Chainitor checks the balance on your plan's schedule and alerts you when it crosses the threshold
Frequently Asked Questions
What is the ERC-20 balanceOf function?
balanceOf(address) is a read-only function every ERC-20 token contract implements. It returns how many units of that token the given address holds, as an unsigned integer in the token's smallest unit. Calling it costs no gas because it does not change state.
Why is the number returned by balanceOf so large?
ERC-20 contracts store balances as integers. To get the human-readable amount, divide the raw value by 10 to the power of the token's decimals(). Most tokens use 18 decimals; USDC and USDT use 6, so a raw value of 1500000000 USDC is 1,500 USDC.
Is my ETH or BNB balance an ERC-20 balance?
No. ETH, BNB, POL and other gas tokens are native currencies, not ERC-20 contracts, so balanceOf does not apply to them. Their balance is read with eth_getBalance. Chainitor monitors native balances with the separate Balance Monitor.
Does this work on BNB Chain, Polygon, Arbitrum, Optimism and Base?
Yes. Tokens on these EVM chains implement the same ERC-20 interface (on BNB Chain the standard is called BEP-20, and it is ERC-20 compatible), so the same balanceOf call works. Point your RPC URL or block explorer at the right chain.
How often does Chainitor check an ERC-20 balance?
Every 5 minutes on the Starter plan and every minute on the Pro plan. When a balance crosses the threshold you set, an alert goes to your configured channels.
Does Chainitor need my private key to monitor a token balance?
No. Token balances are public on-chain data. Chainitor only reads them and never asks for a private key or seed phrase.
Related monitors and guides
Ready to Monitor Your Tokens?
Set up your first ERC-20 Balance Monitor today and stop checking token balances by hand.
Simple, Transparent Pricing
Start monitoring your blockchain infrastructure today
- 10 monitors
- 5-minute checks
- Balance, token, transaction count, event & Safe monitors
- Up to 5 alert channels: email, Slack, Telegram, PagerDuty, webhook
- MCP server & REST API
- 30-day data retention
- Community support
7-day free trial, cancel anytime before you're charged.
- 30 monitors
- 1-minute checks
- All monitor types, incl. failed transaction, function call & transaction value
- Up to 20 alert channels: email, Slack, Telegram, PagerDuty, webhook
- MCP server & REST API
- 1-year data retention
- Priority support
7-day free trial, cancel anytime before you're charged.
- No monitor cap: $1/monitor beyond 30
- All monitor types
- MCP server & REST API
- Custom SLA
- Dedicated support
- Custom monitor code (coming soon)
7-day free trial, cancel anytime before you're charged.
All prices exclude applicable taxes. By signing up, you agree to our Terms of Service and Privacy Policy.
What counts as a monitor?
One monitor equals one specific check you want to run.
Common Use Cases
DevOps Monitoring
Keep track of balances in your Deployer, Hot Wallet, and Treasury across Dev, Staging, and Prod environments.
Whale Watching
Get alerted when specific large wallets move funds or interact with protocols.
Protocol Health
Monitor critical contract events like `EmergencyShutdown` or large `Withdraw` calls.
User Activity
Track activity on your dApp's contracts to understand usage patterns in real-time.