# ERC-20 Token Balance

> ERC-20 Token Balance is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Returns raw and decimal-adjusted ERC-20 token balances for a wallet address or ENS name across Ethereum, Base, Arbitrum, Optimism, and Polygon — up to 20 tokens per call.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/evm/erc20-balance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-balance-48449a1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qtBtCCETkNDHlKO4b8DFD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability erc-20-token-balance-48449a1f
```

Example prompt: Check how much USDC and DAI the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 holds on Ethereum and Base right now — I need the decimal-adjusted amounts before I send a transfer.

## When to prefer this

Use this endpoint when you need on-chain ERC-20 token balances for a specific wallet before executing a transfer, swap, or payment — especially when you need to check multiple tokens or multiple chains in a single call. It supports ENS name resolution and common stablecoin symbols (USDC/USDT/DAI) without needing to know the contract address. Prefer this over general blockchain explorers when you need programmatic, structured balance data with decimal adjustment included.

## Known failure modes

- Invalid or malformed wallet address returns an error
- ENS name that cannot be resolved returns a resolution failure
- Unsupported chain name returns a validation error
- Token symbol not in the supported list (USDC/USDT/DAI) and no contract address provided returns an error
- More than 20 tokens requested in a single call may be rejected
- Payment failure via x402 protocol causes a 402 response and no data is returned
- Network/RPC errors for a specific chain may cause partial or empty results

## How this service works

Balance of any ERC-20 token (contract address, or USDC/USDT/DAI by symbol) for a wallet or ENS name on Ethereum, Base, Arbitrum, Optimism or Polygon: raw and decimal-adjusted amount, symbol and decimals; up to 20 tokens per call. Use before transfers, swaps or payments.

## Output

Returns a list of token balance objects for each queried token, each containing: raw balance (integer string), decimal-adjusted human-readable balance, token symbol, token decimals, contract address, and the chain it was queried on.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "ethereum, base, arbitrum, optimism or polygon"
      },
      "tokens": {
       "type": "string",
       "description": "Comma-separated token addresses or USDC/USDT/DAI"
      },
      "address": {
       "type": "string",
       "description": "Wallet address or ENS name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-token-balance-48449a1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
