# Onchain Risk Feeds – Token Safety Check

> Onchain Risk Feeds – Token Safety Check is a paid API for AI agents from x402-depeg-feed.yinkaphlay13.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Analyzes a token contract on EVM chains for honeypot/rug risks, returning a scored verdict, buy/sell tax rates, liquidity, and detailed risk flags.

## Facts

- Endpoint: GET https://x402-depeg-feed.yinkaphlay13.workers.dev/token-risk
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-risk-feeds-token-safety-check-2cae610f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UOcK9xBTC9AZjL-F5LD3u

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-risk-feeds-token-safety-check-2cae610f
```

Example prompt: Can you check whether this token at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum is safe — like, is it a honeypot or rug, what's the risk score, and are there any buy/sell taxes?

## When to prefer this

Choose this endpoint when an AI agent or user needs a quick, scored safety verdict on a specific EVM token contract before interacting with it — especially to detect honeypots, hidden taxes, or rug indicators. Prefer it over generic block explorer lookups when you need a pre-aggregated risk score and structured flags rather than raw chain data.

## Known failure modes

- Unknown or unverified token returns verdict 'unknown' with empty flags
- Unsupported chain string returns validation error
- Invalid contract address format (not 0x + 40 hex) causes bad request
- Token with no on-chain liquidity may return null liquidityUsd
- Payment not processed correctly causes 402 payment required response
- External data sources unavailable may degrade flag coverage

## How this service works

Paid x402 endpoints for agents: stablecoin depeg-risk, Morpho liquidation-risk, and a token safety check (honeypot/rug). Derived, scored signals.

## Output

Returns a verdict enum (safe, caution, danger, or unknown), an integer risk score, a boolean honeypot flag, buy and sell tax percentages, USD liquidity, open-source status, a list of detailed risk flags with severity and source, a recommendation string, and token metadata including name, symbol, chain, and address.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "chain",
  "token"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "EVM chain: ethereum, base, bsc, arbitrum, polygon, optimism."
  },
  "token": {
   "type": "string",
   "description": "Token contract address (0x + 40 hex)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "flags": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "code": {
      "type": "string"
     },
     "detail": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "severity": {
      "type": "string"
     }
    }
   }
  },
  "token": {
   "type": "object",
   "properties": {
    "name": {
     "type": [
      "string",
      "null"
     ]
    },
    "chain": {
     "type": "string"
    },
    "symbol": {
     "type": [
      "string",
      "null"
     ]
    },
    "address": {
     "type": "string"
    },
    "chainId": {
     "type": "integer"
    }
   }
  },
  "sources": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "verdict": {
   "enum": [
    "danger",
    "caution",
    "safe",
    "unknown"
   ],
   "type": "string"
  },
  "buyTaxPct": {
   "type": [
    "number",
    "null"
   ]
  },
  "checkedAt": {
   "type": "string"
  },
  "riskScore": {
   "type": "integer"
  },
  "disclaimer": {
   "type": "string"
  },
  "isHoneypot": {
   "type": "boolean"
  },
  "openSource": {
   "type": [
    "boolean",
    "null"
   ]
  },
  "sellTaxPct": {
   "type": [
    "number",
    "null"
   ]
  },
  "liquidityUsd": {
   "type": [
    "number",
    "null"
   ]
  },
  "recommendation": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-risk-feeds-token-safety-check-2cae610f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-depeg-feed.yinkaphlay13.workers.dev](https://www.zero.xyz/host/x402-depeg-feed.yinkaphlay13.workers.dev/llms.txt)
