# AI Rook — Smart Contract Analysis

> AI Rook — Smart Contract Analysis is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Analyzes a smart contract and returns structured intelligence about its code, risks, and behaviors

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/contract-analysis
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-smart-contract-analysis-d5a3979f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ef8WnqQQH_wUQTAseNfT8

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 ai-rook-smart-contract-analysis-d5a3979f
```

Example prompt: Can you analyze this smart contract for me — check 0x1a2b3c4d... on Base for any vulnerabilities, backdoors, or rug pull risks before I interact with it?

## When to prefer this

Choose this endpoint when an agent needs a quick, pay-per-call smart contract audit without setting up API keys or subscriptions. Ideal for DeFi safety checks, pre-interaction due diligence, or automated contract screening pipelines operating on Base mainnet. The x402 micropayment model ($0.10/call in USDC) makes it cost-effective for on-demand spot checks rather than bulk auditing.

## Known failure modes

- Invalid or unresolvable contract address returns an error
- Contract not deployed on the expected chain returns a not-found response
- Network congestion or RPC issues may cause timeout
- Unverified contract source code may limit depth of analysis
- Payment failure via x402/USDC returns 402 Payment Required

## How this service works

Live crypto trading intelligence for AI agents — real-time BTC signals, CVD, order flow, and active strategy setups, no API keys or signup. 43 pay-per-call endpoints total: trading data, AI inference (MiniMax M2.7 (456B-parameter Mixture-of-Experts)), web utilities, verification, and ERC-8183 ACP escrow with on-chain ERC-8004 reputation attestation (Agent ID 59646). Four payment rails: USDC on Base mainnet (default), USDC on Solana mainnet, HBAR/USDC on Hedera testnet, USDT on BNB Chain testnet. One free trial call per endpoint. Prices from $0.001/call.

## Output

Returns a structured analysis of the smart contract including identified risks, code behavior patterns, potential vulnerabilities, admin control issues, and an overall risk assessment to help an agent or user decide whether to interact with the contract.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-smart-contract-analysis-d5a3979f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
