# AgentDiet Contract Scanner

> AgentDiet Contract Scanner is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Scans a blockchain contract address and returns structured intelligence data about it, settling payment in USDC on Base via x402.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/contract-scanner?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-contract-scanner-91e5b82e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G9M7zyMN3Kle_jf_LqRpM

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 agentdiet-contract-scanner-91e5b82e
```

Example prompt: Can you scan the smart contract at address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tell me what you find out about it?

## When to prefer this

Choose this endpoint when you need to programmatically scan and extract structured intelligence about a blockchain smart contract address, especially within an agent workflow that supports x402 micropayment settlement in USDC on Base. It is well-suited for automated due diligence, contract auditing pipelines, or any agent that needs on-chain contract data at $0.01 per call.

## Known failure modes

- Invalid or missing contract address returns empty or error data
- Non-existent contract address may return no results
- Payment failure via x402/USDC on Base blocks the request
- Unsupported chain or address format may cause lookup failure
- Rate limiting or gateway errors may return non-200 responses

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing contract intelligence, a 'status' field (e.g. 'ok'), and a 'roi_proof' object including a compression_ratio_pct metric indicating data efficiency of the scan result.

## 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",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "address": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-contract-scanner-91e5b82e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
