# Datakoot ERC-20 Token Balance Lookup (Base)

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

Returns the ERC-20 token balance of a wallet address on the Base blockchain, including symbol, decimals, and raw balance.

## Facts

- Endpoint: POST https://x402.datakoot.com/api/token_balance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-erc-20-token-balance-lookup-base-dd2e895d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Un8auXmo94TgF4uTYlURE

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 datakoot-erc-20-token-balance-lookup-base-dd2e895d -d '<json body>'
```

Example prompt: What's the USDC balance (contract 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913) for the wallet 0x21217f943Fe780A3E95eBe3dfC95bEF2203cF3bB on Base?

## When to prefer this

Use this endpoint when you need a reliable, pay-per-success ERC-20 token balance read on Base mainnet without managing your own RPC infrastructure. Prefer it over raw RPC calls when you want a clean JSON response with symbol, decimals, and human-readable balance already resolved. It is particularly useful for AI agents that need to verify wallet holdings, check airdrop status, or enrich payment workflows — and the x402 micropayment model means you only pay on successful data delivery.

## Known failure modes

- Invalid ERC-20 contract address format (not 0x + 40 hex chars) — returns error
- Invalid wallet address format — returns error
- Contract address is not a valid ERC-20 token on Base — may return zero balance or error
- Wallet has no holdings of the specified token — returns balance of 0
- Network congestion or RPC timeout — request may fail or be slow
- Payment not processed (USDC not deducted) — response not returned on failure

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

Returns a JSON object with the token contract address, holder wallet address, token symbol, human-readable balance (decimal string), raw balance (integer string), number of decimals, and the network name (base-mainnet).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "description": "ERC-20 contract address on Base: 0x followed by 40 hex characters."
  },
  "address": {
   "type": "string",
   "description": "Wallet address whose balance to read: 0x followed by 40 hex characters."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "holder": "0x21217f943Fe780A3E95eBe3dfC95bEF2203cF3bB",
  "symbol": "USDC",
  "balance": "4.998",
  "network": "base-mainnet",
  "decimals": 6,
  "balance_raw": "4998000"
 }
}
```

## More

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