# x402 Bazaar AI Smart Contract Risk Explainer

> x402 Bazaar AI Smart Contract Risk Explainer is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status down (last checked 2026-10-13).

Analyzes a smart contract's verified ABI and security flags, then uses Claude to explain dangerous owner capabilities (mint, pause, blacklist, upgrade, self-destruct) and assigns a danger level.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/ai-contract-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-ai-smart-contract-risk-explainer-c376db69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2TnCMTX6SsEd3yQE6raQW

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 x402-bazaar-ai-smart-contract-risk-explainer-c376db69 -d '<json body>'
```

Example prompt: Can you explain the dangerous capabilities of the smart contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — specifically whether the owner can mint, pause, blacklist, upgrade, or self-destruct it, and what the overall danger level is?

## When to prefer this

Choose this endpoint when you need a human-readable, AI-generated explanation of a contract's dangerous capabilities beyond raw security flags — particularly when you want to understand the real-world risk implications of owner permissions like minting, blacklisting, pausing, upgrading, or self-destructing. Prefer this over raw flag endpoints when presenting risk summaries to non-technical users or building due-diligence reports.

## Known failure modes

- 402 Payment Required — must pay $0.03 USDC on Base via x402 protocol before retrying
- Contract address not verified or ABI unavailable — cannot analyze unverified contracts
- Invalid or non-existent contract address — returns error
- Contract is not on Base network — endpoint is Base-specific
- Rate limiting or upstream Claude API failure

## How this service works

Combines security flags with the verified ABI's function names, then Claude explains the contract's dangerous capabilities — owner can mint, pause, blacklist, upgrade or self-destruct — with a danger level. Goes beyond raw flags to read what the contract can actually do. Paid via x402: $0.03 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A Claude-generated natural language explanation of what the contract can actually do based on its verified ABI and security flags, highlighting dangerous owner capabilities such as minting, pausing, blacklisting, upgrading, or self-destructing, plus an assigned danger level rating.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-ai-smart-contract-risk-explainer-c376db69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
