79trust / 100

Preflight

by x402 Pre-Payment Safety Check in Security & trust

x402 APIPassing, checked 5 h ago

Should an agent pay this x402 endpoint? One read-only call (never pays): validates the 402 + accepts[] (will it settle), labels liveness LIVE|ZOMBIE|DEAD, flags a >=$1000 price-trap honeypot (=> AVOID), scans resource + MCP tools for LLM01/LLM08 injection, screens payTo vs OFAC/scam, checks price (live vs advertised: MATCH|OVERCHARGE|UNDERCHARGE) and Attack-III cache-leakage posture. Returns PAY|CAUTION|AVOID + fix hints. Not a settlement guarantee.

GET
https://x402-data-api.sigrunner.workers.dev/x402/preflight
Price
$0.001
per call in USDC
Uptime
97.8%
last 30 days
Response time
131 ms
794 ms slowest 5%
Last check
Passed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://x402-data-api.sigrunner.workers.dev/x402/preflight

Each call costs $0.001 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://x402-data-api.sigrunner.workers.dev/x402/preflight?url=https%3A%2F%2Fapi.greyridgesignals.ai%2Fcrypto%2Fprices

Parameters

ParameterTypeRequiredDescription
advertisedstringNooptional: the price (USDC dollars, e.g. 0.001) your catalog/listing quoted — the check returns MATCH/OVERCHARGE/UNDERCHARGE vs the live accepts[].amount. If omitted, the endpoint's own /.well-known/x402 manifest is used for a self-consistency check.
maxstringNooptional: your per-call budget ceiling in USDC dollars (e.g. 0.05) — the result flags price_trap.exceeds_caller_max if the live charge is over it. An absolute >=$1000/call charge trips AVOID regardless.
samplesintegerNooptional reliability burst: sample the 402 challenge N times (1-5) and return settle-consistency + latency distribution; a flapping endpoint is downgraded PAY->CAUTION
urlstringYesthe x402 endpoint URL to pre-check before paying

Example response

The provider's example. We can't check it without paying.

Example response, 127 lines
{
  "cache_posture": {
    "cacheable": false,
    "directives": "no-store",
    "note": "the endpoint marks this route non-cacheable to shared caches (no-store/private), so a proxy/CDN cannot replay a paid body to a later unpaid client — the correct posture against Attack III (cache-leakage, arXiv 2605.11781)",
    "observed_cache_hit": false,
    "verdict": "NO_STORE"
  },
  "checks": [
    {
      "detail": "HTTP 402 with a valid x402 accepts[] array",
      "fix": null,
      "name": "challenge",
      "ok": true
    },
    {
      "detail": "scheme=exact network=eip155:8453 asset=USDC payTo=0x… amount set",
      "fix": null,
      "name": "accepts",
      "ok": true
    },
    {
      "detail": "payTo not on OFAC SDN nor community scam lists",
      "fix": null,
      "name": "payTo_safety",
      "ok": true
    },
    {
      "detail": "payTo trajectory: ESTABLISHED — aged USDC inbound history, a long-lived recipient (not a throwaway honeypot the list screen would miss)",
      "fix": null,
      "name": "payTo_trajectory",
      "ok": true
    },
    {
      "detail": "no LLM01/LLM08 prompt-injection patterns in resource/tools",
      "fix": null,
      "name": "resource_scan",
      "ok": true
    },
    {
      "detail": "charged 0.001 USDC == advertised (source: self-manifest)",
      "fix": null,
      "name": "price_accuracy",
      "ok": true
    },
    {
      "detail": "liveness: LIVE — reachable, presents a settle-complete 402, stable across 3 probes",
      "fix": null,
      "name": "liveness",
      "ok": true
    },
    {
      "detail": "3/3 probes payable; latency median 210ms (max 240ms)",
      "fix": null,
      "name": "reliability",
      "ok": true
    },
    {
      "detail": "the challenge declares the output shape (schema/example) so you know what the payment buys",
      "fix": null,
      "name": "delivery",
      "ok": true
    },
    {
      "detail": "cache posture: NO_STORE — the paid route is marked non-cacheable to shared caches (no-store/private), closing Attack III",
      "fix": null,
      "name": "cache_leakage",
      "ok": true
    }
  ],
  "delivery": {
    "note": "the challenge declares the output shape (schema/example) so you know what the payment buys; post-payment delivery is still only provable from your on-chain settlement receipt after you pay",
    "output_specified": true,
    "served_without_payment": false,
    "verdict": "SPECIFIED"
  },
  "findings": [],
  "latency_ms": 142,
  "liveness": {
    "label": "LIVE",
    "note": "reachable, presents a settle-complete 402, stable across 3 probes — a working payable x402 endpoint right now",
    "payable": true,
    "presents_challenge": true,
    "reachable": true,
    "stable": true
  },
  "price_accuracy": {
    "advertised_atomic": 1000,
    "advertised_source": "self-manifest",
    "advertised_usdc": "0.001",
    "charged_atomic": 1000,
    "charged_usdc": "0.001",
    "decimals": 6,
    "delta_atomic": 0,
    "note": "wire price matches the price in the endpoint's own /.well-known/x402 manifest (within rounding tolerance)",
    "ratio": 1,
    "verdict": "MATCH"
  },
  "price_trap": {
    "caller_max_usdc": null,
    "ceiling_usdc": "1",
    "charged_atomic": 1000,
    "charged_usdc": "0.001",
    "exceeds_caller_max": false,
    "extreme_ceiling_usdc": "1000",
    "flagged": false,
    "note": "the live 402 charges 0.001 USDC/call — within the normal x402 micro-payment band (below 1)",
    "tier": "none"
  },
  "reliability": {
    "latency_ms": {
      "max": 240,
      "median": 210,
      "min": 190
    },
    "note": "point-in-time burst sampled now (not historical uptime); a stable burst is not a durability guarantee",
    "reachable_rate": 1,
    "samples": 3,
    "settle_consistency": "3/3",
    "settle_rate": 1,
    "stable": true
  },
  "scope_note": "static 402 wire-format + LIVE/ZOMBIE/DEAD liveness label + absolute price-trap flag + LLM01/LLM08 description scan + payTo flag + advertised-vs-charged price-accuracy + delivery-readiness + Attack-III cache-leakage posture check; read-only, never pays; not a settlement guarantee.",
  "url": "https://api.greyridgesignals.ai/crypto/prices",
  "verdict": "PAY",
  "will_settle": true
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.001.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://x402-data-api.sigrunner.workers.dev/x402/preflight?url=https%3A%2F%2Fapi.greyridgesignals.ai%2Fcrypto%2Fprices'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://x402-data-api.sigrunner.workers.dev/x402/preflight?url=https%3A%2F%2Fapi.greyridgesignals.ai%2Fcrypto%2Fprices' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.001 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.001" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.001 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-data-api.sigrunner.workers.dev%2Fx402%2Fpreflight
const res = await pay("https://x402-data-api.sigrunner.workers.dev/x402/preflight?url=https%3A%2F%2Fapi.greyridgesignals.ai%2Fcrypto%2Fprices");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.001 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.001"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://x402-data-api.sigrunner.workers.dev/x402/preflight?url=https%3A%2F%2Fapi.greyridgesignals.ai%2Fcrypto%2Fprices")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402130 ms$0.001
15 h agoPassed402210 ms$0.001
25 h agoPassed402245 ms$0.001
36 h agoPassed40290 ms$0.001
47 h agoPassed40249 ms$0.001
Show 10 older checks
2 days agoPassed40271 ms$0.001
4 days agoTimed out---
6 days agoTimed out---
6 days agoPassed40296 ms$0.001
7 days agoPassed402585 ms$0.001
7 days agoPassed402502 ms$0.001
7 days agoPassed402286 ms$0.001
8 days agoPassed402317 ms$0.001
8 days agoPassed402402 ms$0.001
8 days agoPassed402676 ms$0.001