# Token Contract Risk Scanner

> Token Contract Risk Scanner is a paid API for AI agents from x402-market-intel-mcp.mtree.workers.dev, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Scans an EVM token/contract address for bytecode-level risks, high-risk function selectors, proxy/admin patterns, and ERC-20 metadata, returning a pay/avoid/manual-review verdict for agent spending decisions

## Facts

- Endpoint: POST https://x402-market-intel-mcp.mtree.workers.dev/v1/x402/token_contract_risk_scan
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-contract-risk-scanner-98166b57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o2jXTuKt1gVRTWzM8eWJ5

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 token-contract-risk-scanner-98166b57 -d '<json body>'
```

Example prompt: Before my agent spends any USDC on this token, scan the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base and tell me whether I should pay, avoid, or manually review it — I want to see the bytecode risk flags, any proxy or admin hints, and the overall verdict.

## When to prefer this

Use this endpoint when an AI agent needs to evaluate whether a token contract is safe to interact with before committing funds — particularly in automated DeFi workflows, agentic payment pipelines, or any scenario where the agent must decide to pay/avoid without human review. Prefer over generic blockchain explorers when you need a structured, machine-readable verdict rather than raw explorer data.

## Known failure modes

- Invalid or non-existent contract address returns error or empty result
- Non-EVM or unsupported chain address causes lookup failure
- Contract with no bytecode (EOA address) returns no analysis
- Network timeout or RPC failure when fetching on-chain data
- Payment failure via x402 (insufficient USDC balance or misconfigured payment header) blocks the call

## How this service works

Token/contract risk scan inspired by the top x402 earner: contract bytecode, ERC-20 metadata, high-risk function selectors, proxy/admin hints, and a pay/avoid/manual-review score for agent spend. Price 0.25 USDC on Base via x402. Free preview: https://x402-market-intel-mcp.mtree.workers.dev/preview/token_contract_risk_scan?source=x402_manifest. Demo: https://x402-market-intel-mcp.mtree.workers.dev/demo/token_contract_risk_scan. Contact: https://x402-market-intel-mcp.mtree.workers.dev/contact.

## Output

Returns a structured risk report including: ERC-20 metadata (name, symbol, decimals), contract bytecode analysis, detected high-risk function selectors (e.g. mint, pause, blacklist), proxy/admin pattern hints, and a final verdict of 'pay', 'avoid', or 'manual-review' to guide agent spend decisions.

## Example request

```json
{
 "chain": "base",
 "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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "address": {
       "type": "string"
      },
      "rpc_url": {
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-contract-risk-scanner-98166b57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-market-intel-mcp.mtree.workers.dev](https://www.zero.xyz/host/x402-market-intel-mcp.mtree.workers.dev/llms.txt)
