# Financial Data x402 — ERC-20 Token Balance Lookup

> Financial Data x402 — ERC-20 Token Balance Lookup is a paid API for AI agents from x402financialdata.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns the raw on-chain token balance of a given wallet address for an ERC-20 token contract on a specified chain, paid per-call via x402/USDC.

## Facts

- Endpoint: GET https://x402financialdata.com/token-balance/%7Baddress%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/financial-data-x402-erc-20-token-balance-lookup-ba39297f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s5sMg4I1GhocnhYgaEM94

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 financial-data-x402-erc-20-token-balance-lookup-ba39297f
```

Example prompt: What is the raw on-chain ERC-20 token balance for wallet address 0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae on Ethereum — I need the raw balance in the token's smallest unit so I can divide by decimals myself.

## When to prefer this

Choose this endpoint when you need a quick, keyless, pay-per-call ERC-20 token balance lookup for an arbitrary wallet address without signing up for an API subscription. It is ideal for agents that need occasional on-chain balance checks at low cost ($0.01 USDC), support USDC micropayments via the x402 protocol, and want to avoid managing API credentials. Prefer it over free RPC calls when you want a reliable, hosted solution, or over subscription-based providers when call volume is low or unpredictable.

## Known failure modes

- Invalid or malformed wallet address returns an error response
- Unknown or unsupported chain identifier may return empty or error
- Payment failure via x402 (insufficient USDC) blocks the request
- Token contract not deployed on the specified chain may return zero or error
- Rate limiting or network issues on the underlying RPC node
- Address with no token holdings returns raw_balance of '0'

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

Returns a JSON object containing: the blockchain chain identifier (e.g. 'eth'), the queried wallet address, the token contract address, and the raw_balance as a string in the token's smallest unit (e.g. wei for 18-decimal ERC-20s). Does not return the token's decimals; the caller must divide by 10^decimals (commonly 10^18) to get a human-readable amount.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "raw_balance is in the token's smallest unit -- this endpoint doesn't return the token's decimals, so divide by 10**decimals yourself for a human-readable amount (most ERC-20s use 18, but not all).",
  "chain": "eth",
  "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
  "raw_balance": "125500000",
  "token_contract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
 }
}
```

## More

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