# Onchain Honeypot Detector

> Onchain Honeypot Detector 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).

Detects whether a given blockchain address is a honeypot smart contract designed to trap funds

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/onchain-honeypot-detector?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/onchain-honeypot-detector-3262ef55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I3_Lp-hD3og1SiOPN9cUh

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 onchain-honeypot-detector-3262ef55
```

Example prompt: Can you check if the contract at 0x1234567890abcdef1234567890abcdef12345678 is a honeypot before I buy any tokens?

## When to prefer this

Use this endpoint when an AI agent or DeFi bot needs a quick, cheap ($0.01 USDC) automated check on whether a smart contract address is a honeypot before executing a trade or interaction. Prefer this over manual audits when speed and cost matter in automated pipelines. Best suited for pre-trade safety gates, portfolio screening workflows, or user-facing safety advisories in crypto apps.

## Known failure modes

- Invalid or malformed contract address returns an error
- Address not found on supported chain returns empty or error data
- Network timeout or upstream node unavailability
- Payment failure via x402 prevents request from being processed
- Address query param missing results in incomplete request

## 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 status field indicating success, a data object containing honeypot analysis results for the queried address, and an roi_proof field with compression metadata. The data object contains the honeypot detection verdict and associated risk signals for the queried contract address.

## 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/onchain-honeypot-detector-3262ef55/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)
