# Agent Data Tools - Contract Risk Analyzer

> Agent Data Tools - Contract Risk Analyzer is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-16).

Analyzes a Base chain smart contract address for risk flags, proxy status, token properties, and bytecode characteristics, returning a structured risk assessment.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/contract-risk?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-contract-risk-analyzer-a7f5924f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IvWEXuUM5RCuO-oGhBPZJ

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 agent-data-tools-contract-risk-analyzer-a7f5924f
```

Example prompt: Can you check the contract risk for 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — tell me the risk level, any red flags, and whether it's a proxy or has ownership renounced?

## When to prefer this

Use this endpoint when you need a quick, structured risk assessment of a specific Base chain contract address without needing a full audit — especially useful for DeFi agents doing pre-trade checks, token screeners, or portfolio monitors. Prefer this over generic block explorers when you need machine-readable risk flags and token metadata in a single call, and when you want a pay-per-call model with no API key or account setup.

## Known failure modes

- Invalid or malformed address (not 0x-prefixed 20-byte hex) returns an error
- Address not found on Base chain returns empty or null contract facts
- Payment of $0.02 USDC not provided via x402 results in 402 Payment Required response
- Rate limiting or worker timeout may return 5xx errors
- Cached data may be stale if lastUpdatedBlock is far behind current chain tip

## How this service works

Read public static documentation as text or Markdown with code, tables, headings and links for $0.002 USDC on Base via x402. Inspect real cached examples and an unsigned quote, then buy with a capped Node CLI. No account or API key. No JavaScript rendering, authenticated or paywalled access. Other paid utilities remain available.

## Output

Returns a JSON object with the contract address, chain, risk level (e.g. 'low'), a human-readable summary, an array of risk flags (empty if none), bytecode facts (size, proxy status, deploy block), and token properties (name, symbol, decimals, owner, totalSupply, paused status, ownershipRenounced). Also includes the last updated block number.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Base chain contract address, 0x-prefixed 20-byte hex"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "contract",
  "chain": "base",
  "facts": {
   "hasCode": true,
   "isProxy": false,
   "deployedAt": null,
   "bytecodeSize": 8953,
   "proxyImplementation": null
  },
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "summary": "low risk: 0 flag(s). Bytecode 8953 bytes.",
  "riskFlags": [],
  "riskLevel": "low",
  "tokenProperties": {
   "name": "USD Coin",
   "owner": "0x0000000000000000000000000000000000000001",
   "paused": null,
   "symbol": "USDC",
   "decimals": 6,
   "totalSupply": "10000000000000",
   "ownershipRenounced": false
  },
  "lastUpdatedBlock": 18650000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-contract-risk-analyzer-a7f5924f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
