Skip to content
Fourohtwo

x402 preflight

minty-sprout.onrender.com/v1/x402-preflight

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

BaseAnswering
POSThttps://minty-sprout.onrender.com/v1/x402-preflight

Uptime100% 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://minty-sprout.onrender.com/v1/x402-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":"https://x402-preflight.nextill-pos.workers.dev/v1/preflight"}),
});
console.log(await res.json());

Example input

{
  "input": "https://x402-preflight.nextill-pos.workers.dev/v1/preflight"
}

More from FoundryProvider status