# chain-erc20-balance

> chain-erc20-balance is a paid API for AI agents from chain.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Returns the live on-chain ERC-20 token balance for a given wallet address across multiple EVM chains including Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC.

## Facts

- Endpoint: GET https://chain.intel.rallylive.ca/chain/erc20-balance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chain-erc20-balance-fc68fa71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SalJ4rVSdY6uwSO6T6-KM

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 chain-erc20-balance-fc68fa71
```

Example prompt: What is the live on-chain USDC balance for wallet 0xAbC123...def on Base right now?

## When to prefer this

Choose this endpoint when you need a real-time, live on-chain ERC-20 token balance for a specific wallet across Base, Ethereum, Arbitrum, Optimism, Polygon, or BSC — especially in DeFi automation, pre-trade checks, or airdrop verification workflows where stale cached data is unacceptable.

## Known failure modes

- Invalid token contract address returns error or zero balance
- Invalid or malformed wallet address returns error
- Unsupported chain prefix returns error
- Network congestion or RPC issues may cause timeout
- Zero balance returned if wallet holds none of the specified token

## How this service works

ERC-20 token balance of a wallet, read live on-chain: send "token,wallet". Default chain Base; prefix another: ethereum:, arbitrum:, optimism:, polygon:, bsc:. $0.01 per call.

## Output

Returns the live ERC-20 token balance for the specified wallet and token contract on the requested chain, read directly from on-chain state. Typically includes the raw balance value and possibly token metadata like decimals or formatted amount.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/chain-erc20-balance-fc68fa71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.intel.rallylive.ca](https://www.zero.xyz/host/chain.intel.rallylive.ca/llms.txt)
