# xx402 Base Token Trade Safety API

> xx402 Base Token Trade Safety API is a paid API for AI agents from x402.xx402.icu, paid per call via x402, $0.01/call, status down (last checked 2026-10-23).

Analyzes an ERC20 token on Base chain for trade safety, providing risk scores, liquidity checks, flow analysis, contract controls, and sizing guidance for autonomous agents.

## Facts

- Endpoint: GET https://x402.xx402.icu/api/base-token-trade-safety?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xx402-base-token-trade-safety-api-a0240d5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CZOHzQVaeRRI4iOmHorx_

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-base-token-trade-safety-api-a0240d5e
```

Example prompt: Check the trade safety of this Base token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — I'm planning to swap about $5000 USD into it, scan the last 500 blocks and give me a go/no-go with the full risk breakdown.

## When to prefer this

Use this endpoint when an autonomous agent or risk tool needs a comprehensive, on-chain trade safety analysis for a specific Base ERC20 token before executing a swap or DeFi transaction. It is specifically designed for Base chain tokens and provides a structured allow/review/avoid decision with supporting evidence, making it ideal for pre-trade gating in DeFi agent workflows. Prefer it over generic block explorers or price APIs when you need actionable risk decisions, liquidity depth checks, contract control red flags, and route sizing guidance in a single call.

## Known failure modes

- Invalid token address format (not a valid 0x ERC20 address) returns validation error
- Token address not found on Base chain returns empty or error state
- window_blocks out of range (below 100 or above 1000) returns parameter error
- Payment not fulfilled (x402 micropayment required at $0.01 USDC) returns 402 response
- Rate limiting or RPC node unavailability may cause timeout or partial data
- intended_trade_usd exceeding $10,000,000 maximum returns parameter validation error

## 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 structured JSON with a trade_safety_decision (allow/review/avoid), trade_verdict, go_no_go_checklist, risk_breakdown with individual risk flags, liquidity metrics, token and pair metadata, holder sketch, contract controls, flow analysis, route_size_decision for the given trade USD amount, execution guardrails, and recommended next steps. Also includes source status and a not_financial_advice disclaimer.

## Response schema (JSON Schema)

```json
{
 "keys": [
  "summary",
  "purchase_acceptance",
  "buyer_next_action",
  "next_paid_call",
  "decision_evidence",
  "repeat_purchase_guard",
  "trade_safety_decision",
  "trade_verdict",
  "go_no_go_checklist",
  "route_execution_plan",
  "buyer_execution_plan",
  "execution_guardrails",
  "route_size_decision",
  "priority_queue",
  "best_next_products",
  "risk_breakdown",
  "review_queue",
  "avoid_queue",
  "recommendation",
  "token",
  "top_pair",
  "liquidity",
  "flow",
  "holder_sketch",
  "contract_controls",
  "bucket_counts",
  "risk_flags",
  "risk",
  "source_status",
  "not_financial_advice",
  "sources"
 ],
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xx402-base-token-trade-safety-api-a0240d5e/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)
