Data tools / On-chain reads and wallet balances

ERC-20 balance API for one wallet on Base, Ethereum, Arbitrum, Polygon or Optimism

Use when you need one ERC-20 balance for one wallet: balanceOf, decimals and symbol read in a single multicall on Base, Ethereum, Arbitrum, Polygon or Optimism, with raw units, a decimal amount, the block and as_of. Not a token contract there: refused before any charge. $0.002 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/evm/erc20-balance?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&token=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913&chain=base'
ParameterRequiredWhat it is
addressyesWallet address (0x + 40 hex)
tokenyesERC-20 contract address
chainnoChain; default base

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

Example answer

{
  "chain": "base",
  "chainId": 8453,
  "block": 52207800,
  "as_of": "2026-10-19T12:00:00.000Z",
  "source": "base.drpc.org",
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "symbol": "USDC",
  "decimals": 6,
  "raw": "25000000",
  "amount": "25",
  "errors": [],
  "note": "Read directly from a public node at the block shown; nothing is cached, estimated or priced in USD. A field the node did not return is null and named in errors."
}

Free sample, no payment: /evm/erc20-balance/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/evm-wallet-onchain, tool evm_erc20_balance. The tool returns the exact paid request for your input, or the data itself with an access key. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools