# Base Onchain Token Contract Risk API

> Base Onchain Token Contract Risk API is a paid API for AI agents from xx402.icu, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Analyzes a Base ERC20 token contract address and returns a comprehensive onchain risk assessment including contract controls, proxy structure, selector heuristics, and risk summary.

## Facts

- Endpoint: GET https://xx402.icu/x402/api/base-token-contract-risk
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-onchain-token-contract-risk-api-fbb8823e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aNvY9HWvHWXHvfag0aioM

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 base-onchain-token-contract-risk-api-fbb8823e
```

Example prompt: Can you run a full onchain risk check on this Base token contract — 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — and tell me if there are any dangerous controls, proxy patterns, or rug pull signals I should know about before trading it?

## When to prefer this

Use this endpoint when you need a structured, per-contract onchain risk report for a specific Base ERC20 token — especially before trading, investing, or integrating a token. Prefer this over generic token info APIs when you specifically need contract control analysis, proxy detection, selector heuristics, and risk scoring in a single call for the Base chain.

## Known failure modes

- Invalid or malformed token_address (not a 0x 40-char hex) returns 400 error
- Token contract not deployed on Base returns empty or error response
- Payment not attached or insufficient USDC triggers 402 Payment Required
- Contract is an EOA (not a smart contract) may return limited or null analysis
- Rate limiting or provider downtime returns 5xx error

## How this service works

Paid x402 buyer market scout, x402 paid resource preflight, x402 seller visibility audit, Base actionable risk feed, liquidity exit risk alerts, pool launch risk feed, stable asset risk feed, contract control event feed, protocol outflow risk feed, yield pool allocation risk feed, protocol fee quality feed, token watchlist decision packet, wallet watchlist decision packet, approval risk feed, ranked DeFi review queues with incident history, onchain risk decision packet, promoted token campaign decision packet, large transfer decision packet, token candidate screening decision radar, DEX pair anomaly decision radar, wallet safety decision packet, counterparty flow, allowance, approval exposure, DEX pair routing risk, token trade safety, token liquidity, token flow, holder concentration, contract controls, batch token screening decision packets, token diligence, and BTC15 prediction-market microstructure, execution-friction, calibration-slice, recent market tape, resolved feature sample, and threshold-pressure packets for agents and risk tools.

## Output

Returns a JSON object with keys: summary (overall risk verdict), token (token metadata), contract (contract-level analysis), proxy (proxy/upgradeability detection), control (owner/admin control findings), selector_heuristics (function-level risk signals), risk (aggregated risk score and flags), and sources (data provenance). Costs $0.01 USDC per call via x402 payment protocol.

## Response schema (JSON Schema)

```json
{
 "keys": [
  "summary",
  "contract_control_decision",
  "priority_queue",
  "best_next_products",
  "control_breakdown",
  "review_queue",
  "avoid_queue",
  "token",
  "contract",
  "proxy",
  "control",
  "selector_heuristics",
  "bucket_counts",
  "risk",
  "source_status",
  "sources"
 ],
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-onchain-token-contract-risk-api-fbb8823e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from xx402.icu](https://www.zero.xyz/host/xx402.icu/llms.txt)
