# Prescan x402 Endpoint Safety Check

> Prescan x402 Endpoint Safety Check is a paid API for AI agents from prescan.canisell.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-23).

Runs deterministic, sub-millisecond heuristic checks on an x402 payment endpoint before an agent pays it, returning a verdict, risk signals, and payment options.

## Facts

- Endpoint: GET https://prescan.canisell.xyz/v1/check/x402?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prescan-x402-endpoint-safety-check-efcbd7e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_urBPIBCtiUJmpMyv1RWVk

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 prescan-x402-endpoint-safety-check-efcbd7e4
```

Example prompt: Before you pay that x402 endpoint at https://api.example.com/v1/data, run a prescan on it with a max budget of $0.05 on Base and tell me whether it's safe to pay.

## When to prefer this

Use this endpoint when an AI agent is about to autonomously pay an x402 endpoint and needs a fast, deterministic risk gate with no LLM in the loop. Prefer it over manual review or LLM-based judgment when sub-millisecond latency matters, auditability via published rules is required, or when inputs must not be stored. It is especially valuable for new or unrecognized domains, when OFAC compliance is a concern, or when enforcing a per-call budget ceiling before committing funds.

## Known failure modes

- URL unreachable or not an x402 endpoint — HTTP status not 402 returned
- URL exceeds max_usd budget — verdict is no_go
- Domain is OFAC-sanctioned — finding with high severity
- Malformed or missing 'url' query parameter — schema validation error
- Network identifier not recognized — CAIP-2 parse error
- Endpoint returns unexpected content type — truncated or invalid x402 headers

## How this service works

Deterministic, explainable checks an agent runs before it reads untrusted text, connects to an MCP server or pays an x402 endpoint. No LLM in the loop, sub-millisecond scans, spans for every finding, published rules (GET /v1/rules) and published precision/recall.

Heuristic signals, not a guarantee: a clean result lowers risk, it does not prove content is safe. Inputs are not stored.

## Output

Returns a JSON object containing: a 'verdict' (e.g. 'caution', 'go', 'no_go'), a numeric risk 'score' (0–100), a 'safe_to_pay' boolean, a human-readable 'summary', a list of 'findings' with severity and weight, structured 'signals' covering domain age, OFAC status, x402scan listing, and discovery metadata, plus 'payment_options' with recommended network, asset, amount, and pay-to address.

## 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": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 2000,
       "minLength": 8,
       "description": "The x402 endpoint you are about to pay (full URL incl. query). Only GET is sent; nothing is paid."
      },
      "max_usd": {
       "type": "number",
       "maximum": 1000000,
       "description": "Your budget per call in USD; above it the verdict is no_go.",
       "exclusiveMinimum": 0
      },
      "network": {
       "type": "string",
       "maxLength": 80,
       "description": "Preferred network, CAIP-2 (eip155:8453) or v1 name (base)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://api.canisell.xyz/v1/verdict/0x532f27101965dd16442E59d40670FaF5eBB142E4",
  "http": {
   "ms": 180,
   "https": true,
   "status": 402,
   "final_url": "https://api.canisell.xyz/v1/verdict/0x532f27101965dd16442E59d40670FaF5eBB142E4",
   "redirects": [],
   "truncated": false,
   "x402_version": 2
  },
  "score": 50,
  "signals": {
   "domain": {
    "age_days": 0,
    "registered": "2026-11-01T18:40:58.0Z",
    "registrable": "canisell.xyz"
   },
   "pay_to": {
    "zero_address": false,
    "ofac_sanctioned": false,
    "is_token_contract": false
   },
   "x402scan": {
    "listed": true,
    "origin_title": "Canisell: can your bot sell it? Pay-per-call risk verdicts for new Base tokens",
    "listed_price_usd": 0.01,
    "listed_resources": 2,
    "listed_pay_to_match": true
   },
   "discovery": {
    "openapi": true,
    "well_known": true,
    "advertised_price_usd": 0.01
   }
  },
  "summary": "Caution: Domain canisell.xyz was registered 0 day(s) ago. Best option: $0.01 on Base to 0x741f...8feb.",
  "verdict": "caution",
  "findings": [
   {
    "id": "domain_very_new",
    "weight": 0.5,
    "message": "Domain canisell.xyz was registered 0 day(s) ago.",
    "severity": "medium"
   }
  ],
  "resource": {
   "url": "https://api.canisell.xyz/v1/verdict/0x532f27101965dd16442E59d40670FaF5eBB142E4",
   "mime_type": "application/json",
   "description": "Pre-trade risk verdict for a Base ERC-20"
  },
  "checked_at": "2026-11-02T10:00:00.000Z",
  "safe_to_pay": false,
  "payment_options": [
   {
    "usd": 0.01,
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "index": 0,
    "amount": "10000",
    "pay_to": "0x741f78ED943C671e25405dAAaAB7b6886C7e8feb",
    "scheme": "exact",
    "network": "eip155:8453",
    "payable": true,
    "problems": [],
    "asset_symbol": "USDC",
    "network_name": "Base",
    "max_timeout_seconds": 300
   }
  ],
  "recommended_option": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prescan-x402-endpoint-safety-check-efcbd7e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prescan.canisell.xyz](https://www.zero.xyz/host/prescan.canisell.xyz/llms.txt)
