# RugGuard Deep Scan — Smart Contract Rug Check

> RugGuard Deep Scan — Smart Contract Rug Check is a paid API for AI agents from rugguard.redfleet.fr, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-10).

Performs a deep heuristic rug-pull risk scan on a crypto smart contract (Base EVM or Solana), returning a weighted risk score, verdict, and detailed flag list.

## Facts

- Endpoint: GET https://rugguard.redfleet.fr/v1/scan/deep/%7Bchain%7D/%7Bcontract%7D
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rugguard-deep-scan-smart-contract-rug-check-85eb6f2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tT17o644cnlRjDS0ct7O5

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-deep-scan-smart-contract-rug-check-85eb6f2d
```

Example prompt: Run a deep rug check on the Base token at 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed — I want to know the risk score, verdict, and any critical flags before I buy.

## When to prefer this

Use this endpoint when an AI agent needs a fast, structured, pay-per-call rug-pull risk score for a specific token contract on Base (EVM, 14 heuristics) or Solana (5 heuristics) before executing a trade. Prefer over generic blockchain explorers when you need a machine-readable verdict, weighted score, and per-flag severity breakdown without requiring API key management — just USDC micropayment via x402.

## Known failure modes

- Invalid chain identifier returns validation error
- Malformed contract address (wrong length or non-hex for EVM) returns 400
- Contract not found on specified chain returns uncertain verdict or error
- Insufficient on-chain data returns score_confidence=insufficient_data
- Service unavailable returns 5xx; agent should retry
- Payment failure via x402 prevents scan from executing

## 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 UUID scan ID, chain, contract address, weighted risk score (0–100), verdict enum (safe/low_risk/medium_risk/high_risk/critical/uncertain), array of heuristic flags with severity codes, 30-day rug probability estimate, score confidence level, elapsed scan time in ms, and a disclaimer. Also includes per-heuristic breakdown with evidence strings, pass/fail decisions, and weights.

## 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",
    "heuristics_evaluated"
   ],
   "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"
    },
    "endpoint": {
     "type": "string"
    },
    "cache_hit": {
     "type": "boolean"
    },
    "signature": {
     "type": [
      "string",
      "null"
     ]
    },
… (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",
  "verdict": "medium_risk",
  "contract": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "endpoint": "/v1/scan/deep",
  "disclaimer": "Data analytics best-effort, not a security guarantee.",
  "elapsed_ms": 1240,
  "scanned_at": "2026-05-17T00:00:00+00:00",
  "score_confidence": "high",
  "score_calculation": "weighted_sum_normalized_0_100",
  "heuristics_evaluated": [
   {
    "code": "OWNER_NOT_RENOUNCED",
    "weight": 1,
    "decision": "fail",
    "evidence": "owner=0x704E...3c0d has setTaxRate, blacklist, pause privileges.",
    "severity": "high"
   },
   {
    "code": "TOP10_CONCENTRATION_HIGH",
    "weight": 1.5,
    "decision": "fail",
    "evidence": "Top 10 wallets hold 71% of supply.",
    "severity": "high"
   },
   {
    "code": "LP_NOT_LOCKED",
    "weight": 2,
    "decision": "pass",
    "evidence": "LP locked at Unicrypt for 365d.",
    "severity": "critical"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rugguard-deep-scan-smart-contract-rug-check-85eb6f2d/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)
