# Base ERC-20 Token Risk Verdict

> Base ERC-20 Token Risk Verdict is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns a deterministic on-chain risk verdict (OK|CAUTION|AVOID), should_buy/can_sell flags, risk score 0-100, and specific risk flags for any Base ERC-20 token address

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/token-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-erc-20-token-risk-verdict-c482f44f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DPe46kQTEkWxSXu2z6MyB

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 base-erc-20-token-risk-verdict-c482f44f
```

Example prompt: Before I swap into it, can you run an on-chain risk check on the Base token at 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed and tell me if I should buy it, the risk score, and any honeypot or tax flags?

## When to prefer this

Choose this endpoint when an AI agent needs a single deterministic on-chain safety verdict before executing a token swap or trade on Base — especially when you want to avoid LLM-opinion-based token analysis and instead rely on bytecode-level checks, honeypot simulation, tax measurement, and holder concentration data. It is cheaper than comparable AI-verdict services ($0.01 vs $0.02) and covers all major rug pull vectors in one call. Prefer it over generic blockchain explorers when you need a machine-readable buy/sell decision with structured risk flags rather than raw contract data.

## Known failure modes

- Invalid or non-ERC-20 address returns error (address must match ^0x[0-9a-fA-F]{40}$)
- Non-Base chain addresses may return incorrect or empty results since only Base ERC-20 tokens are supported
- Honeypot simulation may fail for tokens with unusual transfer mechanics
- Unverified contracts may have limited flag coverage
- Payment failure (402) if USDC balance on Base is insufficient
- Rate limiting or worker timeout for very large contracts with high bytecode size

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

A JSON object with: verdict (OK|CAUTION|AVOID), should_buy (boolean), can_sell (boolean), risk_score (0-100 integer), risk_level (low/medium/high), plain-English reasons array, flags array (e.g. honeypot, cannot_sell_all, high_tax, mintable, hidden_owner, proxy, blacklist, unverified), trading details (buy_tax, sell_tax, honeypot_sim.is_honeypot, top10_holder_pct), token metadata (symbol, decimals, holder_count), and contract info (bytecode_bytes, verified_source, EIP-1967 proxy impl, owner 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
       ],
       "description": "Base ERC-20 contract"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "flags": [
   "upgradeable_proxy"
  ],
  "token": {
   "symbol": "USDC",
   "decimals": 6,
   "holder_count": 11391096
  },
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "reasons": [
   "upgradeable proxy (logic can change)"
  ],
  "trading": {
   "buy_tax": 0,
   "sell_tax": 0,
   "honeypot_sim": {
    "is_honeypot": false
   },
   "top10_holder_pct": 26.49
  },
  "verdict": "OK",
  "can_sell": true,
  "contract": {
   "is_contract": true,
   "bytecode_bytes": 1852,
   "verified_source": true
  },
  "risk_level": "low",
  "risk_score": 5,
  "should_buy": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-erc-20-token-risk-verdict-c482f44f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
