# b0x402 Token Safety Scanner

> b0x402 Token Safety Scanner is a paid API for AI agents from b0x402-data.mulberry-boar.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Scans an ERC-20 token contract for honeypot detection, tax rates, and composite risk scoring using Honeypot.is and on-chain data.

## Facts

- Endpoint: GET https://b0x402-data.mulberry-boar.workers.dev/v1/token-safety
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/b0x402-token-safety-scanner-ca52ed1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_waLfR9pIzmcKUbyVhD3fG

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 b0x402-token-safety-scanner-ca52ed1d
```

Example prompt: Is the token at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum a honeypot? Give me the risk level, buy and sell taxes, and whether the contract is open source.

## When to prefer this

Use this endpoint when you need on-chain honeypot detection and tax analysis for ERC-20 tokens on Ethereum, Base, BSC, Polygon, or Arbitrum — especially when you need a structured, pay-per-call API that combines Honeypot.is data with live on-chain holder counts and proxy detection without requiring API key management.

## Known failure modes

- Invalid contract address format (must be 0x + 40 hex chars) returns 400
- Unsupported chain identifier returns 400
- Contract address not found on specified chain returns 404 or empty result
- Honeypot.is upstream outage may cause 502 or degraded data
- Insufficient USDC balance or failed x402 payment returns 402

## How this service works

Real-data x402 V2 API on Base. Token safety scanner (Honeypot.is + on-chain) and multi-chain gas tracker. Pay per call in USDC.

## Output

Returns a composite risk verdict (low/medium/high/critical), boolean honeypot flag, numeric risk level (0-4), buy/sell/transfer tax percentages, holder count, whether the contract is open-source and proxy-based, token name and symbol, and specific risk flags raised by Honeypot.is.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "address",
      "chain"
     ],
     "properties": {
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "bsc",
        "polygon",
        "arbitrum"
       ],
       "type": "string",
       "default": "ethereum",
       "description": "EVM chain identifier - REQUIRED"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "ERC-20 contract address (0x...) - REQUIRED"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "address",
    "chain",
    "risk",
    "is_honeypot",
    "timestamp"
   ],
   "properties": {
    "risk": {
     "enum": [
      "low",
      "medium",
      "high",
      "critical"
     ],
     "type": "string",
     "description": "Composite risk verdict"
    },
    "chain": {
     "type": "string",
     "description": "Chain identifier"
    },
    "flags": {
     "type": "array",
     "items": {
      "type": "string"
     },
     "description": "Specific risk flags Honeypot.is raised"
    },
    "source": {
     "type": "string",
     "description": "Upstream data source identifier"
    },
    "address": {
     "type": "string",
     "description": "Queried contract address"
    },
    "chain_id": {
     "type": "integer",
     "description": "Numeric CAIP-2 chainId (1=eth, 56=bsc, 137=polygon, 8453=base, 42161=arb)"
    },
    "decimals": {
     "type": "integer",
     "description": "ERC-20 decimals"
    },
    "is_proxy": {
     "type": "boolean",
     "description": "Contract is EIP-1967 proxy"
    },
    "timestamp": {
     "type": "string",
     "description": "Fetch timestamp ISO"
    },
    "risk_level": {
     "type": "integer",
     "maximum": 4,
     "minimum": 0,
     "description": "Numeric risk 0=low → 4=critical"
    },
    "token_name": {
     "type": "string",
     "description": "Token name from Honeypot.is"
    },
    "buy_tax_pct": {
     "type": "number",
     "description": "Buy-side tax percent"
    },
    "is_honeypot": {
     "type": "boolean",
     "description": "True if Honeypot.is flagged as honeypot"
    },
    "open_source": {
     "type": "boolean",
     "description": "Contract source verified open"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "risk": "low",
 "chain": "ethereum",
 "address": "0x...",
 "is_proxy": true,
 "timestamp": "ISO",
 "risk_level": 1,
 "buy_tax_pct": 0,
 "is_honeypot": false,
 "open_source": true,
 "holder_count": 7869395,
 "sell_tax_pct": 0,
 "sells_buyable": true,
 "transfer_tax_pct": 0
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/b0x402-token-safety-scanner-ca52ed1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from b0x402-data.mulberry-boar.workers.dev](https://www.zero.xyz/host/b0x402-data.mulberry-boar.workers.dev/llms.txt)
