# xx402 Base Wallet Risk & DeFi Analysis API

> xx402 Base Wallet Risk & DeFi Analysis 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-24).

Analyzes a Base/EVM wallet address for on-chain risk, DeFi exposure, approval vulnerabilities, and counterparty flow within a configurable block window.

## Facts

- Endpoint: GET https://x402.xx402.icu/api/base-wallet-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xx402-base-wallet-risk-defi-analysis-api-1fe68245
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IIWB3FPv2cHRET4nISu6n

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-wallet-risk-defi-analysis-api-1fe68245
```

Example prompt: Can you check the on-chain risk and wallet safety verdict for Base wallet 0xba76c7ECa175f67cFcE475c09498f840176bf497, inspecting USDC token approvals over the last 3000 blocks, and return the trust verdict, any dangerous approvals, and what I should do next?

## When to prefer this

Choose this endpoint when you need a comprehensive, structured risk verdict for a specific Base/EVM wallet before executing a DeFi transaction, accepting a payment, or onboarding a counterparty. It is especially valuable for autonomous agents that need machine-readable trust scores, approval exposure lists, and actionable next-step queues. Prefer it over generic blockchain explorers when you need opinionated safety decisions and revocation recommendations rather than raw transaction data.

## Known failure modes

- Invalid wallet address format (must match ^0x[a-fA-F0-9]{40}$) returns validation error
- Invalid token address format returns validation error
- window_blocks out of range (100-5000) returns parameter error
- Payment not received (x402 protocol failure) returns 402 status
- Upstream Base RPC timeout causes partial or empty data fields
- Limit parameter out of range (1-10) returns validation error
- Wallet with no on-chain history may return empty queues and minimal evidence

## 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 comprehensive wallet risk profile including: wallet trust verdict and safety decision, value-at-risk summary, approval exposure details, counterparty flow analysis, risk breakdown and address risk score, evidence ladder, priority/review/avoid queues, approval revocation recommendations, buyer/seller execution plans, and source status metadata. Also includes 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",
  "wallet_safety_decision",
  "wallet_trust_verdict",
  "value_at_risk_summary",
  "evidence_ladder",
  "follow_up_purchase_router",
  "wallet_safety_verdict",
  "wallet_safety_checklist",
  "buyer_execution_plan",
  "priority_queue",
  "risk_breakdown",
  "exposure_overview",
  "address_risk",
  "approval_exposure",
  "counterparty_flow",
  "risk",
  "review_queue",
  "avoid_queue",
  "approval_revocation_queue",
  "bucket_counts",
  "source_status",
  "not_financial_advice",
  "sources"
 ],
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xx402-base-wallet-risk-defi-analysis-api-1fe68245/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)
