# Agent Data Tools: ERC-20 Token Balance on Base

> Agent Data Tools: ERC-20 Token Balance on Base is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Returns the ERC-20 token balance for a given wallet address on the Base blockchain, including human-readable and raw amounts.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/base/token-balance?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-erc-20-token-balance-on-base-9a8ded54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_amzHn5t_4Xgq-oHIbmznF

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 agent-data-tools-erc-20-token-balance-on-base-9a8ded54
```

Example prompt: What's the USDC balance for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base — the USDC contract address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?

## When to prefer this

Choose this endpoint when you need the ERC-20 token balance of a specific wallet on the Base L2 network with no API key or account setup, paying only $0.001 per call in USDC. Prefer this over Etherscan or Alchemy when you want a pay-per-use model with no subscription, or when you need a simple lookup that integrates with x402 micropayment flows for AI agents.

## Known failure modes

- Invalid or malformed 0x token contract address returns an error
- Invalid or malformed 0x wallet address returns an error
- Token contract not deployed on Base returns an empty or zero balance
- Network/RPC timeout on Base node returns a 5xx error
- Missing required query parameters (token or address) returns a 400 error

## How this service works

ERC-20 token balance of a wallet on Base (USDC, USDT, WETH or any token, via balanceOf): raw amount, decimals, symbol and the human-readable amount, live from the token contract. Use to check stablecoin or token holdings before a transfer or trade; for the native coin use base_balance. Both inputs are 0x addresses (40 hex characters); no contract returns 404 and a non-ERC-20 contract 422, both uncharged.

## Output

Returns a JSON object with the wallet's token balance as a human-readable decimal string (e.g. '2.5'), the raw integer balance, the token symbol, decimals, the chain name ('Base'), chain ID (8453), the token contract address, and the queried wallet address.

## 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",
      "address"
     ],
     "properties": {
      "token": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
       ],
       "description": "Token: a ticker such as USDC, USDT, WETH or DAI, or the 0x ERC-20 contract address"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
       ],
       "description": "0x wallet address"
      }
     }
    }
   },
   "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"
      },
      "address": {
       "type": "string"
      },
      "balance": {
       "type": "string"
      },
      "chainId": {
       "type": "number"
      },
      "decimals": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "raw": "2500000",
  "chain": "Base",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "symbol": "USDC",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "balance": "2.5",
  "chainId": 8453,
  "decimals": 6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-erc-20-token-balance-on-base-9a8ded54/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
