# Token Risk Check — Base ERC-20 (x402)

> Token Risk Check — Base ERC-20 (x402) 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 risk verdict, risk score, honeypot simulation, trading taxes, holder distribution, and contract metadata for any Base ERC-20 token address.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/v1/check?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/token-risk-check-base-erc-20-x402-454d89f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QeZoEzva-VzyIyk7BKe6K

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-risk-check-base-erc-20-x402-454d89f6
```

Example prompt: Before I swap into it, can you run a risk check on the Base token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — I want to know if it's a honeypot, what the buy/sell taxes are, and what the overall risk verdict is?

## When to prefer this

Use this endpoint when an AI trading or onchain agent needs a fast, pay-per-use safety check on a Base ERC-20 token before executing a swap or investment — especially when you want honeypot detection, tax analysis, and a risk verdict in a single call without managing API keys. Prefer this over general blockchain explorers when you need a structured, agent-readable risk verdict rather than raw contract data.

## Known failure modes

- Invalid or malformed address (not a 0x + 40 hex char format) returns a validation error
- Non-Base or non-ERC-20 address may return empty or error response
- Payment not made via x402 USDC on Base returns 402 Payment Required
- Unverified or very new contracts may have incomplete data
- Rate limits or worker downtime may yield 5xx errors

## 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 containing: chain identifier ('base'), contract address, token symbol and decimals, holder count, a risk_level string (e.g. 'low'), a numeric risk_score, a verdict string ('OK' or otherwise), boolean flags can_sell and should_buy, honeypot simulation result (is_honeypot boolean), buy_tax and sell_tax percentages, top10_holder_pct, contract metadata (is_contract, bytecode_bytes, verified_source), and an array of human-readable reasons and flags (e.g. 'upgradeable_proxy').

## 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/token-risk-check-base-erc-20-x402-454d89f6/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)
