# Token Rug Scan API

> Token Rug Scan API is a paid API for AI agents from agy-x402-gateway.omega-x402-edge.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-12-02).

Scans a Base or Solana token address for rug-pull risk, returning an on-chain forensics report with a numeric risk score and verdict

## Facts

- Endpoint: GET https://agy-x402-gateway.omega-x402-edge.workers.dev/api/v1/token-rug-scan?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-rug-scan-api-849f0009
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e-Kf0ukJ4je1J4-KDsQ1w

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-rug-scan-api-849f0009
```

Example prompt: Can you scan this Solana token — DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 — and tell me if it's a rug pull risk? I want to see the risk score, verdict, and any red flags like mint authority or concentrated top holders.

## When to prefer this

Use this endpoint when you need a fast, pay-per-call rug-pull and token safety assessment for Base or Solana tokens without maintaining your own blockchain indexer. It is well-suited for pre-trade vetting, portfolio screening, or alerting workflows where you need a structured risk verdict and specific red-flag signals like mint authority status or top-holder concentration. Prefer this over general blockchain explorers when you need a computed risk score and verdict rather than raw on-chain data.

## Known failure modes

- Invalid or malformed token address returns an error response
- Address not found on specified chain returns empty or error result
- Chain mismatch (Base address queried on Solana or vice versa) may return no data
- Rate limiting or payment failure via x402 results in 402 Payment Required
- Very new tokens with insufficient on-chain history may return incomplete market data

## How this service works

24/7 Edge pay-per-call biomedical, multi-chain token/escrow/wallet forensics, clean web extraction, and x402 verification APIs settled via USDC on Base and Solana.

## Output

Returns a JSON object containing: the chain (base or solana), token address, on-chain data (mint_authority, freeze_authority, top5_holders_pct), market data (symbol, liquidity_usd), a numeric rug_risk_score (0-100), a verdict enum (low_risk, medium_risk, or high_rug_risk), an array of risk_flags (e.g. 'deep_dex_liquidity', 'mint_authority_active'), and a scanned_at timestamp.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Optional chain override: base or solana"
      },
      "address": {
       "type": "string",
       "description": "Base 0x... or Solana Base58 mint address"
      }
     }
    },
    "discoverable": {
     "type": "boolean"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "address",
      "onchain",
      "market",
      "rug_risk_score",
      "verdict",
      "risk_flags",
      "scanned_at"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "solana"
       ],
       "type": "string"
      },
      "market": {
       "type": "object"
      },
      "address": {
       "type": "string"
      },
      "onchain": {
       "type": "object"
      },
      "verdict": {
       "enum": [
        "low_risk",
        "medium_risk",
        "high_rug_risk"
       ],
       "type": "string"
      },
      "risk_flags": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "scanned_at": {
       "type": "string"
      },
      "rug_risk_score": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "solana",
  "market": {
   "symbol": "BONK",
   "liquidity_usd": 4200000
  },
  "address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
  "onchain": {
   "mint_authority": null,
   "freeze_authority": null,
   "top5_holders_pct": 18.4
  },
  "verdict": "low_risk",
  "risk_flags": [
   "deep_dex_liquidity"
  ],
  "scanned_at": "2026-11-05T00:00:00.000Z",
  "rug_risk_score": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-rug-scan-api-849f0009/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agy-x402-gateway.omega-x402-edge.workers.dev](https://www.zero.xyz/host/agy-x402-gateway.omega-x402-edge.workers.dev/llms.txt)
