How to get a crypto wallet's balance by API
For an EVM wallet you can read the native balance with the eth_getBalance JSON-RPC call and token balances with each token contract's balanceOf, using any node; Etherscan and Alchemy wrap this behind a free key. Our Wallet Balances API reads ETH, POL or BNB plus USDC and USDT on Ethereum, Base, Polygon, Arbitrum, OP Mainnet and BNB Chain in one call, with an approximate USD total, for $0.005. It doesn't list every token a wallet holds, and it doesn't cover Bitcoin or Solana.
Try it free Wallet Balance API — ETH, USDC, USDT on 6 chains, $0.005 · $0.005 / call
The raw way, with a public node
Repeat per chain and per token, with the right contract address and decimals for each chain. That bookkeeping is the main work.
import requests
RPC = "https://ethereum-rpc.publicnode.com"
ADDR = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
def call(method, params):
return requests.post(RPC, json={"jsonrpc": "2.0", "id": 1, "method": method, "params": params}).json()["result"]
eth = int(call("eth_getBalance", [ADDR, "latest"]), 16) / 1e18
data = "0x70a08231" + ADDR[2:].lower().rjust(64, "0") # balanceOf(address)
usdc = int(call("eth_call", [{"to": USDC, "data": data}, "latest"]), 16) / 1e6 # USDC has 6 decimals
Hosted options
Etherscan and Alchemy figures are from their docs and pricing pages in December 2026. If you need every token, an indexer like Alchemy fits better than our API.
| Option | What you get | Cost and limits |
|---|---|---|
| Etherscan API V2 | Native and single-token balances, many chains with one key | Free key at 3 calls a second; some chains (Base, BNB, OP) paid-only |
| Alchemy | All ERC-20 balances of a wallet in one method | Free tier of 30 million compute units a month |
| Wallet Balances (iamai.markets) | Native coin plus USDC/USDT on 6 chains, USD total | $0.005 per call, no account |
One call across six chains
curl -i -X POST https://iamai.markets/api/x402/services/EVPv_butEizm \
-H "Content-Type: application/json" \
-d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "chains": ["ethereum", "base"]}'
# An ENS name works too: {"address": "vitalik.eth"}
# Amounts come back as exact decimal strings, plus approx_usd per chain and in total
What to know before you rely on it
- Only the native coin and the main USDC and USDT contracts are checked (plus USDC.e on Polygon).
- Stablecoins are counted at $1 and native coins at their Chainlink price, so the USD figure is approximate.
- A mixed-case address that fails its checksum is refused as a likely typo, and not charged.
- It reads public data only. It never asks for keys or sends anything.
- This is balance data, not advice about what to do with it.
The product
Questions
Can I get a Bitcoin or Solana wallet balance here?
No. This API covers six EVM chains only. Bitcoin and Solana need their own node APIs or explorers.
Is a wallet balance private?
No. Balances on public blockchains are visible to anyone who knows the address.
Why does a token I hold not show?
Only USDC and USDT are read. For other tokens, read balanceOf on that token's contract or use an indexer.
Related
Updated 2026-12-02
