x402station Guard

One line of code that stops your agent from paying dead, fake, zombie, or overpriced x402 endpoints. Runs preflight before every PAYMENT-SIGNATURE your agent signs. Fail-closed by default.

The whole integration
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { wrapWithPreflight } from "x402station-middleware";

const x402Fetch = wrapFetchWithPaymentFromConfig(fetch, { schemes: [...] });
const safeFetch = wrapWithPreflight(x402Fetch);

// Use exactly like fetch — preflight runs before every payment.
await safeFetch("https://api.example.com/x402-endpoint", { method: "POST", ... });
// ↑ throws PreflightBlockedError if dead / zombie / decoy / never_paid_zombie.

Three ways to install

What Guard blocks right now

Snapshot from the live catalog (refreshed on every probe pass, every 10 minutes):

Full breakdown: We probed 49,314 x402 endpoints. Here's what we blocked.

Framework recipes

5-minute copy-paste integration for the agent runtimes we've verified end-to-end:

For service operators

Run an x402 endpoint and want agents to prefer it when routing? Mint a $1 verified-badge cert — 30-day signed certificate that proves your endpoints aren't on the blacklist. Agents using Guard prefer verified endpoints when routing alternatives.