# ERC-20 Token Balance Lookup (Base Chain)

> ERC-20 Token Balance Lookup (Base Chain) is a paid API for AI agents from tripguard-fare-intel.onrender.com, paid per call via x402, $0.12/call, status unknown (last checked 2026-10-11).

Returns the ERC-20 token balance for a given wallet address on Base, defaulting to USDC.

## Facts

- Endpoint: POST https://tripguard-fare-intel.onrender.com/chain/erc20-balance?utm_source=zero.xyz
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-balance-lookup-base-chain-b78e6331
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fR8w4FfFBbUhxIOs98Zlq

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

Example prompt: What's the current USDC balance of the wallet 0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE on Base? I need the human-readable amount with decimals.

## When to prefer this

Use this endpoint when you need to verify an on-chain ERC-20 (especially USDC) balance on the Base L2 network before executing a payment, funding check, or eligibility validation. Prefer this over Ethereum mainnet balance checkers when operating within the Base ecosystem or x402 payment flows.

## Known failure modes

- Invalid or malformed wallet address returns an error or null balance
- Invalid ERC-20 contract address causes a failed contract call
- Network issues with Base RPC result in a timeout or 500 error
- Address with zero balance returns '0' — not an error but may be misinterpreted
- Non-ERC-20 contract address causes unexpected response or revert

## How this service works

Real-time airfare intelligence for AI travel-booking agents: flight price-drop prediction, fare-fraud and deal-legitimacy verification, and verified booking links for any route and date. Pay-per-call in USDC on Base. No API key.

## Output

Returns a JSON object with the wallet's raw token balance (integer string), human-readable formatted amount (e.g. '4.111'), the token contract address, the queried wallet address, and the token's decimal precision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "description": "ERC-20 contract. Defaults to USDC on Base."
  },
  "address": {
   "type": "string",
   "description": "Account to read."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "raw": "4111000",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "amount": "4.111",
  "address": "0x9Cc774A8eD49d89cBA1A288F4a050B8F7FbA77EE",
  "decimals": 6
 }
}
```

## More

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