# Live ERC-20 Token Balance

> Live ERC-20 Token Balance is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Reads the current ERC-20 token balance for a wallet or contract address on Base, Ethereum, or Arbitrum, returning raw and formatted amounts plus token metadata.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/erc20_balance
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/live-erc-20-token-balance-808d994e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PP5WapUKVC4O59IqOFX3Y

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 live-erc-20-token-balance-808d994e
```

Example prompt: What's the current USDC balance for wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum — give me both the raw amount and the human-readable formatted figure?

## When to prefer this

Choose this endpoint when you need the current (or historical) ERC-20 token balance for a specific wallet or contract on Base, Ethereum, or Arbitrum, and you want both raw on-chain units and a human-readable formatted amount along with token metadata (symbol, decimals) in a single call. Prefer it over a generic eth_call endpoint when you want token metadata included automatically without manually ABI-encoding balanceOf calls.

## Known failure modes

- Invalid or malformed token contract address returns an error or empty result
- Invalid wallet/account address returns an error
- Unsupported chain name returns a validation error
- Block tag too far in the past may not be available on all nodes
- Token contract address that is not ERC-20 compliant may produce metadata warnings or missing symbol/decimals
- Network congestion may cause slow or failed RPC responses

## How this service works

Read one wallet or contract's current ERC-20 balance directly from Base, Ethereum, or Arbitrum, including raw units and contract-supplied token metadata.

## Output

Returns a JSON object with a success flag, the network name, token symbol, token decimals, the raw balance as a string (in smallest units), the formatted balance as a human-readable decimal string, and an array of any metadata warnings encountered during the call.

## 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",
     "required": [
      "token",
      "account"
     ],
     "properties": {
      "block": {
       "type": "string",
       "description": "Block tag or height; defaults to latest."
      },
      "chain": {
       "type": "string",
       "description": "base, ethereum, or arbitrum; defaults to base."
      },
      "token": {
       "type": "string",
       "description": "ERC-20 token contract address."
      },
      "account": {
       "type": "string",
       "description": "Wallet or contract address whose token balance should be read."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "network",
      "symbol",
      "decimals",
      "balance_raw",
      "balance_formatted",
      "metadata_warnings"
     ],
     "properties": {
      "symbol": {
       "type": "string"
      },
      "network": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "decimals": {
       "type": "integer"
      },
      "balance_raw": {
       "type": "string"
      },
      "balance_formatted": {
       "type": "string"
      },
      "metadata_warnings": {
       "type": "array",
       "items": {}
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "symbol": "USDC",
  "network": "base",
  "success": true,
  "decimals": 6,
  "balance_raw": "0",
  "balance_formatted": "0.0",
  "metadata_warnings": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/live-erc-20-token-balance-808d994e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
