# EVM Token Risk Analyzer

> EVM Token Risk Analyzer is a paid API for AI agents from x402-apis-production.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-22).

Analyzes on-chain and market risk factors for an ERC-20 token contract address on Base or Ethereum, returning a risk score, flags, and market data.

## Facts

- Endpoint: GET https://x402-apis-production.up.railway.app/v1/evm/token-risk?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-token-risk-analyzer-1e454d9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G2EWj_xjbKQaJ5i-uRUzc

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 evm-token-risk-analyzer-1e454d9e
```

Example prompt: Can you check the risk level of the token at contract address 0x4ed4e862860bed51a9570b96d89af5e1b0efefed on Base — I want to know its risk score, any dangerous flags like mint functions, and current liquidity before I buy any.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call (no API key) risk assessment of an ERC-20 token on Base or Ethereum, especially for DeFi agents that need to gate trades or warn users about smart contract risks. Prefer this over manual on-chain inspection when you want a combined view of contract-level risk flags (mint functions, proxy, privileged roles) AND live market metrics (liquidity, volume, price) in a single call.

## Known failure modes

- Invalid or non-contract address returns an error or empty result
- Unsupported chain value (not 'base' or 'ethereum') causes a validation error
- Token not found on specified chain may return null fields or error
- Insufficient USDC balance or payment failure results in HTTP 402 with no data
- Unverified or very new contracts may have incomplete market data
- Rate limiting or server errors from the underlying railway deployment

## How this service works

Pay-per-call data APIs. Each call is paid with USDC on Base via x402 (HTTP 402). No account or API key.

## Output

Returns a JSON object with the token's name, symbol, chain, decimals, total supply, owner address, proxy details, paused status, a numeric risk score (0-100), a risk level label (e.g. 'low', 'medium', 'high'), an array of risk flags (each with code, detail, and severity), a list of privileged functions, and market data including DEX name, 24h buy/sell counts, USD price, liquidity, pair age in hours, and 24h volume.

## 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": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Chain (default base)"
      },
      "address": {
       "type": "string",
       "description": "ERC-20 token contract address (0x...)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Degen",
  "chain": "base",
  "flags": [
   {
    "code": "MINT_FUNCTION",
    "detail": "Contract exposes a mint function; supply may be inflatable.",
    "severity": "medium"
   }
  ],
  "owner": "0x0000000000000000000000000000000000000000",
  "proxy": null,
  "score": 10,
  "market": {
   "dex": "uniswap",
   "buys24h": 465,
   "priceUsd": 0.00087,
   "sells24h": 457,
   "liquidityUsd": 1250000,
   "pairAgeHours": 14000,
   "volume24hUsd": 21571
  },
  "paused": null,
  "symbol": "DEGEN",
  "address": "0x4ed4e862860bed51a9570b96d89af5e1b0efefed",
  "decimals": 18,
  "riskLevel": "low",
  "knownIssuer": null,
  "totalSupply": 36965932338.7,
  "privilegedFunctions": [
   "mint(address,uint256)"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-token-risk-analyzer-1e454d9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-apis-production.up.railway.app](https://www.zero.xyz/host/x402-apis-production.up.railway.app/llms.txt)
