# Token Risk Score API

> Token Risk Score API is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.1/call, status unknown (last checked 2026-12-01).

Analyzes an EVM token contract address and returns a composite safety score, verdict, and detailed sub-scores covering honeypot risk, liquidity, taxes, ownership, and holder concentration.

## Facts

- Endpoint: POST https://x402.agentutility.ai/token-risk?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-risk-score-api-67ed8b42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TNA6f9XdpbUGEpzzgazpq

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-score-api-67ed8b42 -d '<json body>'
```

Example prompt: Can you check if the token at 0x4200000000000000000000000000000000000006 on Base is safe — give me the risk score, verdict, and any honeypot or rug pull warnings?

## When to prefer this

Use this endpoint when you need a fast, multi-source composite risk assessment for an EVM token before trading, swapping, or recommending it. It aggregates honeypot detection, liquidity analysis, and ownership checks into a single scored verdict — ideal for DeFi bots, trading agents, or user-facing safety tools that need a one-call answer across Base, Ethereum, or BSC without managing multiple provider integrations.

## Known failure modes

- Invalid or malformed token address (not 0x-prefixed 20-byte hex) returns an error
- Token not found on specified chain returns empty or error response
- Unsupported chain value outside enum (base, ethereum, bsc) causes validation failure
- Newly deployed tokens with insufficient on-chain history may return incomplete sub-scores
- Network timeout or upstream data source unavailability may cause degraded or failed response

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object with: overall risk score (0-100, higher = safer), a verdict string (e.g. 'safe', 'risky', 'honeypot'), token metadata (name, symbol, address, decimals), individual sub-scores for honeypot risk, liquidity, taxes, ownership, contract age, and holder concentration, a list of warning strings, the chain analyzed, and the data sources used (e.g. honeypot.is, goplus, etherscan).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "token_address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "bsc"
       ],
       "type": "string",
       "description": "EVM chain. Default 'base'."
      },
      "token_address": {
       "type": "string",
       "description": "0x-prefixed 20-byte EVM token contract address."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "score": {
       "type": "integer"
      },
      "token": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "symbol": {
         "type": "string"
        },
        "address": {
         "type": "string"
        },
        "decimals": {
         "type": "integer"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      },
      "warnings": {
       "type": "array"
      },
      "subscores": {
       "type": "object",
       "properties": {
        "taxes": {
         "type": "integer"
        },
        "honeypot": {
         "type": "integer"
        },
        "liquidity": {
         "type": "integer"
        },
        "ownership": {
         "type": "integer"
        },
        "contract_age": {
         "type": "integer"
        },
        "holder_concentration": {
         "type": "integer"
        }
       }
      },
      "data_sources": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "score": 95,
  "token": {
   "name": "Wrapped Ether",
   "symbol": "WETH",
   "address": "0x4200000000000000000000000000000000000006",
   "decimals": 18
  },
  "source": "composite",
  "verdict": "safe",
  "warnings": [],
  "subscores": {
   "taxes": 20,
   "honeypot": 25,
   "liquidity": 15,
   "ownership": 5,
   "contract_age": 10,
   "holder_concentration": 20
  },
  "data_sources": [
   "honeypot.is",
   "goplus",
   "etherscan"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-risk-score-api-67ed8b42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
