# Token Risk Lite — ERC-20 Risk Score on Base

> Token Risk Lite — ERC-20 Risk Score on Base is a paid API for AI agents from token-risk.restockalarm.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Returns a lightweight 0–100 risk score for any ERC-20 token contract on Base, with contract flags, liquidity risk band, and holder concentration data.

## Facts

- Endpoint: GET https://token-risk.restockalarm.workers.dev/v1/risk-lite?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-risk-lite-erc-20-risk-score-on-base-6dc6cfab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IhiMnt7PI2KJo1OtD0lKC

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-lite-erc-20-risk-score-on-base-6dc6cfab
```

Example prompt: Can you do a quick risk check on the Base token at address 0x940181a94a35a4569e4529a3cdfb74e38fd98631 — I want to know the risk score, whether it's mintable or has a sell tax, and if the liquidity looks okay?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.005) preliminary risk signal for a Base ERC-20 before committing to deeper analysis. It's ideal for screening multiple tokens quickly or when only top-level flags (mintability, liquidity band, sell tax presence, holder concentration) are needed. Prefer the full /v1/risk endpoint when you need on-chain sell simulation details, known-address supply breakdowns, or sourced liquidity data. Only suitable for Base chain tokens — do not use for Ethereum or Polygon tokens.

## Known failure modes

- Invalid or malformed contract address (not 0x + 40 hex) → 400 Bad Request
- Token address is on Polygon or Ethereum (not Base) → 503 Service Unavailable (not charged)
- Unpaid request on the full /v1/risk endpoint → 402 Payment Required
- Contract address not found or not an ERC-20 on Base → may return incomplete or error response
- Missing address param → returns example response with example=true (AERO token)

## How this service works

Token Risk Score API for Base: one call returns a 0-100 risk score (higher = riskier) for any ERC-20 on Base, with a derived liquidity view, known-address supply breakdown, our own on-chain sell simulation (buy/sell/transfer tax) and contract flags (owner, proxy, blacklist, pause, selfdestruct, delegatecall). Base only; Polygon/Ethereum analysis is paused (503 before payment, never charged). $0.01 per call via x402 (USDC on Base), or $0.005 for the slim /v1/risk-lite. No charge for…

## Output

A JSON object including: a 0–100 risk score (higher = riskier), token name and symbol, liquidity risk band (e.g. '$10M–$100M', level 'low'), contract flags (mintable, buy_tax_pct, sell_tax_pct, sell_blocked, etc.), holder concentration (level and insider percentage), and a score breakdown by component (liquidity, pool age, holder concentration, news sentiment, contract trading). Also includes a pointer to the full paid report for deeper analysis.

## 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": [],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "ERC-20 contract address on Base (0x + 40 hex). If omitted, the AERO example is returned with example=true; an invalid address is 400."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lite": true,
  "chain": "base",
  "score": 20,
  "token": {
   "name": "Aerodrome",
   "symbol": "AERO"
  },
  "cached": false,
  "address": "0x940181a94a35a4569e4529a3cdfb74e38fd98631",
  "disclaimer": "Ikke investeringsråd / not investment advice. Automated indicator from public on-chain and DEX data; it can be incomplete or wrong. Do your own research.",
  "full_report": "GET https://token-risk.restockalarm.workers.dev/v1/risk?address=0x940181a94a35a4569e4529a3cdfb74e38fd98631 ($0.01: + liquidity view, known-address supply breakdown, sell simulation details, sources)",
  "contract_flags": {
   "flags": [],
   "mintable": true,
   "buy_tax_pct": 0,
   "sell_blocked": false,
   "sell_tax_pct": null
  },
  "liquidity_risk": {
   "band": "$10M-$100M",
   "level": "low"
  },
  "score_breakdown": {
   "pool_age": 0,
   "liquidity": 5,
   "news_sentiment": 0,
   "contract_trading": 3,
   "holder_concentration": 5
  },
  "holder_concentration": {
   "level": "low",
   "insider_pct": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-risk-lite-erc-20-risk-score-on-base-6dc6cfab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from token-risk.restockalarm.workers.dev](https://www.zero.xyz/host/token-risk.restockalarm.workers.dev/llms.txt)
