# ERC-20 Token Balance Lookup

> ERC-20 Token Balance Lookup is a paid API for AI agents from chain.cyberwarex.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns the ERC-20 token balance for a wallet address on a specified EVM chain, including raw amount, human-readable balance, symbol, and decimals.

## Facts

- Endpoint: GET https://chain.cyberwarex.com/erc20-balance?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-balance-lookup-b4c80747
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_doCCZ00UtwGUFH-OpcFPF

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-lookup-b4c80747
```

Example prompt: What's the USDC balance for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base right now?

## When to prefer this

Use this endpoint when you need a quick, keyless, pay-per-call ERC-20 balance lookup on a supported EVM chain without managing RPC infrastructure. Prefer this over direct RPC calls when you don't have node access or want deterministic JSON output. Choose this over a full wallet snapshot endpoint when you only need one specific token balance rather than the entire portfolio.

## Known failure modes

- Invalid wallet address format (not a valid 0x hex address) — likely 400 error
- Invalid ERC-20 contract address — may return null balance or symbol
- Unsupported chain name (outside base, ethereum, arbitrum, optimism, polygon) — validation error
- Payment failure or insufficient USDC for the $0.001 per-call fee — 402 Payment Required
- Contract address is not an ERC-20 token — may return null for symbol/decimals
- Network congestion causing delayed on-chain read — slow or timeout response

## How this service works

Pay-per-call EVM chain data for agents: wallet snapshots, ERC-20 token profiles, spot prices, gas markets, transaction decode, and ENS resolution across major EVM chains (base, ethereum, arbitrum, optimism, polygon). Deterministic JSON, no RPC keys or node infra needed.

## Output

A JSON object containing: the human-readable token balance (balance), raw on-chain amount (raw), token symbol (symbol), decimals, the queried wallet address, the ERC-20 contract address (token), and the chain name. Example: {raw: '250400000', chain: 'base', token: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', symbol: 'USDC', address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', balance: 250.4, decimals: 6}.

## 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": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "default": "base",
       "description": "EVM chain to query."
      },
      "token": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "ERC-20 contract address (default: the chain's USDC)."
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "Wallet address to read."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "raw": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "token": {
       "type": "string"
      },
      "symbol": {
       "type": [
        "string",
        "null"
       ]
      },
      "address": {
       "type": "string"
      },
      "balance": {
       "type": [
        "number",
        "null"
       ]
      },
      "decimals": {
       "type": [
        "integer",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "raw": "250400000",
  "chain": "base",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "symbol": "USDC",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "balance": 250.4,
  "decimals": 6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-token-balance-lookup-b4c80747/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.cyberwarex.com](https://www.zero.xyz/host/chain.cyberwarex.com/llms.txt)
