# xx402 ERC20 Token Balance & Risk Check on Base Chain

> xx402 ERC20 Token Balance & Risk Check on Base Chain is a paid API for AI agents from x402.xx402.icu, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Fetches the ERC20 token balance for a wallet address on Base chain and returns a structured risk summary, exposure breakdown, and DeFi product recommendations.

## Facts

- Endpoint: GET https://x402.xx402.icu/api/base-chain/erc20-balance?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xx402-erc20-token-balance-risk-check-on-base-chain-4a8fde6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kCJ2PW1GNYEG44VpkiWxo

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 xx402-erc20-token-balance-risk-check-on-base-chain-4a8fde6b
```

Example prompt: What's the USDC balance and risk assessment for wallet 0xba76c7ECa175f67cFcE475c09498f840176bf497 on Base chain — include any exposure breakdown and product recommendations?

## When to prefer this

Choose this endpoint when you need a combined on-chain ERC20 balance lookup plus structured risk assessment for a Base chain wallet in a single call. It is ideal for autonomous agents that need to make risk-gated decisions (e.g., before executing payments, approving counterparties, or recommending DeFi products) without stitching together multiple raw RPC and risk APIs. Prefer it over raw RPC calls when you need the aggregated risk_breakdown, avoid/review/priority queues, and exposure scores alongside the balance.

## Known failure modes

- Invalid wallet address format returns an error (must match 0x[40 hex chars])
- Invalid token contract address format returns an error
- Unsupported or non-existent token contract may return empty balance or source_status errors
- Payment not completed (x402 flow incomplete) results in 402 response with no data
- Rate limiting or upstream chain read failures may cause partial source_status results
- Network congestion on Base may delay or fail on-chain balance reads

## How this service works

Paid Base token, wallet, DeFi, chain-read, x402 buyer/seller discovery, and specialized Bitcoin 15-minute Up/Down prediction-market data packets for autonomous agents and risk tools.

## Output

Returns a JSON object containing: a summary and decision field for quick risk adjudication; the raw token balance; token and owner identifiers; an exposure score; a risk_breakdown with detailed sub-scores; prioritized, review, and avoid queues of DeFi products; bucket counts; and source status flags indicating which data providers contributed.

## Response schema (JSON Schema)

```json
{
 "keys": [
  "summary",
  "decision",
  "balance",
  "token",
  "owner",
  "account",
  "exposure",
  "next_products",
  "priority_queue",
  "risk_breakdown",
  "review_queue",
  "avoid_queue",
  "bucket_counts",
  "source_status",
  "sources"
 ],
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xx402-erc20-token-balance-risk-check-on-base-chain-4a8fde6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.xx402.icu](https://www.zero.xyz/host/x402.xx402.icu/llms.txt)
