# xx402 Base ERC20 Token Contract Risk API

> xx402 Base ERC20 Token Contract Risk 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 a Base chain ERC20 token contract address and returns a structured risk assessment including contract control, proxy structure, selector heuristics, and buy/sell decision guidance for autonomous agents.

## Facts

- Endpoint: GET https://x402.xx402.icu/api/base-token-contract-risk?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-erc20-token-contract-risk-api-7741b2eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oxxe934fQwrVuSw1tKFFo

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-erc20-token-contract-risk-api-7741b2eb
```

Example prompt: Before I swap into this Base token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, run a contract risk check on it — tell me if there are any proxy controls, admin risks, or red flags I should know about.

## When to prefer this

Use this endpoint when you need on-chain contract-level risk signals for a specific Base ERC20 token before executing a trade, swap, or DeFi interaction. It is purpose-built for autonomous agents performing pre-trade safety checks on Base chain tokens, offering structured control/proxy analysis and actionable buy-decision fields that generic blockchain explorers or token price APIs do not provide. Prefer this over general token info APIs when the concern is smart contract security, admin control, or rug-pull detection rather than price or liquidity.

## Known failure modes

- Invalid or malformed token_address (not a valid 0x hex address) returns an error
- Contract address not deployed on Base chain returns empty or error response
- Rate limiting or payment failure (x402 payment not processed) results in 402 response
- Source APIs unavailable may result in degraded or partial data with source_status flags set
- Non-ERC20 contract address may return incomplete analysis

## 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 with a risk summary, purchase acceptance flag, buyer next action recommendation, contract control decision, proxy structure details, selector heuristics, bucket counts, source status, repeat purchase guard signal, priority and review queues, and a list of best next products — along with a disclaimer that 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",
  "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",
  "not_financial_advice",
  "sources"
 ],
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xx402-base-erc20-token-contract-risk-api-7741b2eb/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)
