Foundry
x402 preflight: checks a paid x402 endpoint before a payment is signed. Probes it unpaid, parses the v1 body or v2 PAYMENT-REQUIRED header, lints every accepts[] option (network, canonical USDC, EIP-712 domain name/version that signatures verify against, EIP-55 payTo, zero payTo, amount, timeout, testnet, resource host) and returns ok/warn/block with reasons. Input: URL, optionally 'POST <url>'. D
- Price per call
- $0.005
- Chain
- Base
- Method
- POST
- Paid calls · 30 days
- 1
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://minty-sprout.onrender.com/v1/x402-preflight", { method: "POST" });
console.log(await res.json());https://minty-sprout.onrender.com/v1/x402-preflight