# RugGuard Pre-Trade Rug Check

> RugGuard Pre-Trade Rug Check 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-15).

Analyzes a crypto token smart contract on Base or Solana for rug pull risk, returning a weighted risk score, verdict, and detailed flags.

## Facts

- Endpoint: GET https://rugguard.redfleet.fr/v1/pretrade/check
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rugguard-pre-trade-rug-check-bf767dd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q1dFE7KddzvA0XwCTfUV4

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-bf767dd8
```

Example prompt: Before I buy this token, run a rug check on contract 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base and tell me the risk score, verdict, and any critical flags.

## When to prefer this

Use this endpoint when an AI agent needs a fast, pay-per-call (no API key required) pre-trade safety signal for a specific token contract on Base (EVM, 14 heuristics) or Solana (SPL, 5 heuristics). Prefer it over generic blockchain explorers when you need a structured risk score, rug probability, and severity-tagged flags in a single API call without a subscription.

## Known failure modes

- Invalid contract address format returns an error (not a 40-hex EVM address or valid base58 Solana mint)
- Unsupported chain value (not 'base' or 'solana') returns a validation error
- Contract with no on-chain data returns verdict 'uncertain' with score_confidence 'insufficient_data'
- Payment failure via x402 protocol results in 402 response blocking the call
- Network timeout if the chain RPC is slow or unavailable

## 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 UUID scan ID, the chain and contract address, a weighted risk score from 0 (safe) to 100 (critical), a verdict enum (safe/low_risk/medium_risk/high_risk/critical/uncertain), an array of heuristic flags with severity levels, a 30-day rug probability estimate (0–1), score confidence level, a summary object with honeypot/LP/owner/concentration details, and a disclaimer.

## 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-bf767dd8/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)
