Preflight before paying an x402 service
agentdata-api.sander-van-aard.workers.dev/x402/preflight
Preflight before paying an x402 service: is it working right now, and did it work the past 30 days? One live probe of the exact resource URL you intend to pay (status, latency, x402 validity, the payTo/price the service itself publishes in its 402, manifest presence) plus our own monitoring history of the host (30-day uptime, last check, recent changes such as payTo or price drift). Optionally ver
POST
https://agentdata-api.sander-van-aard.workers.dev/x402/preflightUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentdata-api.sander-van-aard.workers.dev/x402/preflight", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"pay_to":"0x0000000000000000000000000000000000000001","resource":"https://api.example-service.com/data"}),
});
console.log(await res.json());Example input
{
"pay_to": "0x0000000000000000000000000000000000000001",
"resource": "https://api.example-service.com/data"
}