# RugGuard Pre-Trade Rug Check API

> RugGuard Pre-Trade Rug Check API is a paid API for AI agents from rugguard.redfleet.fr, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Scans a crypto smart contract on Base or Solana for rug pull risk signals, returning a 0–100 risk score, verdict, and specific heuristic flags

## Facts

- Endpoint: GET https://rugguard.redfleet.fr/v1/scan/%7Bchain%7D/%7Bcontract%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rugguard-pre-trade-rug-check-api-54f9552b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_taD_wyYZ8pxjpu3Mi4C_x

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 rugguard-pre-trade-rug-check-api-54f9552b
```

Example prompt: Before I buy this token, can you run a rug check on contract 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base — I want to know the risk score, verdict, and any critical flags like unlocked LP or active mint authority.

## When to prefer this

Use this endpoint when an AI agent needs a fast, pay-per-call rug pull risk assessment for a specific smart contract on Base or Solana before executing or recommending a token purchase. Prefer it over manual on-chain analysis when speed and structured output (score + flags) are needed. It requires no API key — only a per-call x402 USDC micropayment — making it ideal for agentic workflows that need deterministic risk gating without subscription overhead.

## Known failure modes

- Invalid chain value (not 'base' or 'solana') returns 422 validation error
- Malformed contract address returns 422 or 400
- Contract not found or too new returns verdict 'uncertain' with low score_confidence
- Payment not provided or insufficient USDC returns 402 Payment Required
- Data too sparse for reliable scoring returns verdict 'uncertain'
- Rate limiting or upstream data provider errors may return 5xx

## How this service works

Pay-per-call rug check for crypto smart contracts. Built for AI agents on Agentic.market (x402). USDC fractional pricing, no API key.

## Output

Returns a JSON object with a 0–100 integer risk score (0=safe, 100=critical), a verdict string (safe/low_risk/medium_risk/high_risk/critical/uncertain), an array of heuristic flags with severity levels (low/medium/high/critical), a summary object covering honeypot status, LP lock, mint authority, owner renounced, buy/sell tax percentages, and top-10 holder concentration, plus a scan ID, timestamp, and cache hit indicator.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "chain",
      "contract"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "solana"
       ],
       "type": "string",
       "description": "Chain identifier. `base` = EVM (14 heuristics). `solana` = SPL (5 heuristics)."
      },
      "contract": {
       "type": "string",
       "description": "Token contract address. EVM: `0x` + 40 hex chars. Solana: base58 mint address."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "scan_id",
    "chain",
    "contract",
    "score",
    "verdict",
    "scanned_at"
   ],
   "properties": {
    "chain": {
     "enum": [
      "base",
      "solana"
     ],
     "type": "string"
    },
    "flags": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "code",
       "severity"
      ],
      "properties": {
       "code": {
        "type": "string",
        "description": "Heuristic identifier, e.g. OWNER_NOT_RENOUNCED."
       },
       "severity": {
        "enum": [
         "info",
         "low",
         "medium",
         "high",
         "critical"
        ],
        "type": "string"
       }
      }
     }
    },
    "score": {
     "type": "integer",
     "maximum": 100,
     "minimum": 0,
     "description": "Weighted risk score, 0 = safe, 100 = critical."
    },
    "scan_id": {
     "type": "string",
     "format": "uuid"
    },
    "summary": {
     "type": "object",
     "additionalProperties": true
    },
    "verdict": {
     "enum": [
      "safe",
      "low_risk",
      "medium_risk",
      "high_risk",
      "critical",
      "uncertain"
     ],
     "type": "string"
    },
    "contract": {
     "type": "string"
    },
    "cache_hit": {
     "type": "boolean"
    },
    "signature": {
     "type": [
      "string",
      "null"
     ]
    },
    "disclaimer": {
     "type": "string"
    },
    "scanned_at": {
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "chain": "base",
  "flags": [
   {
    "code": "OWNER_NOT_RENOUNCED",
    "severity": "high"
   },
   {
    "code": "TOP10_CONCENTRATION_HIGH",
    "severity": "high"
   }
  ],
  "score": 62,
  "scan_id": "01J9-aaaa-bbbb-cccc-dddddddddddd",
  "summary": {
   "honeypot": false,
   "lp_locked": true,
   "owner_renounced": false,
   "source_verified": true,
   "top10_concentration_pct": 71.4
  },
  "verdict": "medium_risk",
  "contract": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "cache_hit": false,
  "disclaimer": "Data analytics best-effort, not a security guarantee.",
  "scanned_at": "2026-05-17T00:00:00+00:00",
  "score_confidence": "high",
  "rug_probability_30d": 0.41
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rugguard-pre-trade-rug-check-api-54f9552b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rugguard.redfleet.fr](https://www.zero.xyz/host/rugguard.redfleet.fr/llms.txt)
