# xx402 Base Token Pre-Trade Risk Assessment API

> xx402 Base Token Pre-Trade Risk Assessment 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-22).

Analyzes a Base network ERC20 token's on-chain risk, liquidity, flow, and holder data to produce a pre-trade go/no-go safety decision for autonomous agents.

## Facts

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

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-pre-trade-risk-assessment-api-c612ae95
```

Example prompt: Before I swap $10,000 into the USDC token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, run a pre-trade risk check over the last 200 blocks with a sample size of 5 and tell me if I should go ahead, review, or avoid the trade.

## When to prefer this

Choose this endpoint when you need a structured, agent-ready pre-trade risk assessment specifically for Base network ERC20 tokens, including liquidity depth, holder concentration, contract control flags, and a concrete allow/review/avoid sizing decision. It is purpose-built for autonomous trading agents and risk automation tools that require actionable go/no-go outputs rather than raw on-chain data. Prefer it over generic blockchain explorers or DEX APIs when you need a synthesized risk verdict with execution guardrails for a specific proposed trade size.

## Known failure modes

- Invalid token address format (must match ^0x[a-fA-F0-9]{40}$) — returns validation error
- Token not found or not deployed on Base — may return empty or error response
- window_blocks below minimum of 100 — rejected by schema validation
- limit exceeds maximum of 8 — rejected by schema validation
- intended_trade_usd exceeds $10,000,000 maximum — rejected
- Payment not fulfilled (x402 protocol) — returns 402 Payment Required
- Upstream on-chain RPC or data source unavailable — may return degraded or partial response

## 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 object containing a trade safety decision (allow/review/avoid), go/no-go checklist, route size guidance, risk breakdown with flags, liquidity metrics, token flow data, holder sketch, contract control analysis, and an execution plan with guardrails. Also includes priority queue, best next products, and a disclaimer noting the data is not financial advice.

## 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-pre-trade-risk-assessment-api-c612ae95/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)
