# Token Risk Assessment on Base (x402)

> Token Risk Assessment on Base (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 score, verdict, and safety flags for any ERC-20 token contract on Base chain, including honeypot detection, buy/sell tax, holder concentration, and contract verification status.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/chain/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/token-risk-assessment-on-base-x402-875d9a07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Rhsqh6c0lL-1dXz82_U1

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-assessment-on-base-x402-875d9a07
```

Example prompt: Before I swap into it, can you check whether the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base is safe — look up its risk score, whether it's a honeypot, and if the top holders are too concentrated?

## When to prefer this

Use this endpoint when an AI trading agent or DeFi automation needs a quick, pay-per-call token safety check on Base chain without managing API keys. Ideal for agents that need honeypot detection, tax analysis, and holder concentration in a single call before executing a swap. Prefer this over full on-chain analysis when low latency and micropayment billing (USDC via x402) are preferred over subscription APIs.

## Known failure modes

- Invalid address format (not a valid 0x ERC-20 address) returns a 400 error
- Contract address not found on Base chain returns empty or error response
- Payment via x402/USDC not completed results in 402 Payment Required before data is returned
- Unverified or very new contracts may return incomplete data or higher uncertainty scores
- Rate limits or worker downtime may cause 5xx responses

## 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: chain ('base'), token symbol and decimals, holder count, risk_score (0–100 int), risk_level ('low'/'medium'/'high'), verdict ('OK' or flagged), can_sell and should_buy booleans, flags array (e.g. 'upgradeable_proxy'), reasons array explaining flags, honeypot simulation result, buy/sell tax rates, top-10 holder percentage, and contract metadata (is_contract, bytecode_bytes, verified_source).

## 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-assessment-on-base-x402-875d9a07/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)
