# EVM Smart Contract Explainer

> EVM Smart Contract Explainer is a paid API for AI agents from meryol-agenticmarket-x402.hf.space, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns a structured explanation of any EVM smart contract including type classification, risk warnings, and top called functions in the last 24 hours

## Facts

- Endpoint: GET https://meryol-agenticmarket-x402.hf.space/explain/:chain/:address?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/meryol-agenticmarket-x402-hf-space-18672646
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OOUoAfqxjsWcByvddamA-

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 meryol-agenticmarket-x402-hf-space-18672646
```

Example prompt: Before I sign this transaction, can you explain what the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum actually does — is it verified, what type is it, and are there any risk warnings like proxy upgrades or owner minting?

## When to prefer this

Use this endpoint when an AI agent or user needs to understand an unknown smart contract before signing a transaction, performing a rugcheck, or interacting with a DeFi protocol. Especially valuable for unverified contracts where ABI is unavailable (uses 4byte fallback), and when proxy detection or owner-privilege risk warnings are needed. Prefer this over generic block explorers when structured, machine-readable output with risk classifications is required.

## Known failure modes

- Invalid or malformed contract address returns 400
- Contract address not found on specified chain returns 404
- Unsupported chain value returns 422
- Unverified contract with no 4byte matches may return minimal selector info
- Rate limiting or payment failure returns 402
- RPC timeout on chain query returns 503

## How this service works

Returns a structured explanation of any EVM smart contract on Ethereum, Base, Arbitrum, or Optimism. Output: type label (ERC20/ERC721/proxy/router), name, 3-bullet summary, risk warnings (unverified, upgradeable_via_proxy, mintable_by_owner, pausable), and top 5 selectors called in 24h with live call counts. Rugcheck, ABI decoding, proxy detection, "what is 0x..." lookups before an agent signs a tx. Works on unverified contracts via 4byte fallback.

## Output

A structured JSON object containing: the contract's type label (ERC20, ERC721, proxy, router, etc.), its name, a 3-bullet plain-English summary, an array of risk warning strings (e.g. unverified, upgradeable_via_proxy, mintable_by_owner, pausable), verified boolean, and the top 5 function selectors called in the past 24 hours with their live call counts.

## Example request

```json
{
 "chain": "ethereum",
 "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "chain",
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "optimism"
       ],
       "type": "string"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "address",
      "verified",
      "type",
      "summary",
      "warnings"
     ],
     "properties": {
      "name": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "address": {
       "type": "string"
      },
      "summary": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "maxItems": 5,
       "minItems": 1
      },
      "verified": {
       "type": "boolean"
      },
      "warnings": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "top_functions_24h": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "name",
  "type",
  "chain",
  "address",
  "summary",
  "verified",
  "warnings",
  "top_functions_24h"
 ],
 "properties": {
  "name": {
   "type": "string"
  },
  "type": {
   "type": "string"
  },
  "chain": {
   "type": "string"
  },
  "address": {
   "type": "string"
  },
  "summary": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "verified": {
   "type": "boolean"
  },
  "warnings": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "top_functions_24h": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "calls",
     "selector",
     "signature"
    ],
    "properties": {
     "calls": {
      "type": "number"
     },
     "selector": {
      "type": "string"
     },
     "signature": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meryol-agenticmarket-x402-hf-space-18672646/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meryol-agenticmarket-x402.hf.space](https://www.zero.xyz/host/meryol-agenticmarket-x402.hf.space/llms.txt)
