x402 preflight
x402-preflight-grokbot.netlify.app/api/preflight
x402 preflight: check any x402 endpoint BEFORE you pay it. Probes the target unpaid and returns its live price in USD, network, whether the asset is canonical USDC, payTo, timeout, mismatches vs the CDP Bazaar listing, and a pay / caution / do_not_pay verdict. Never signs or pays anything.
GET
https://x402-preflight-grokbot.netlify.app/api/preflightUptime100% of 1 check 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402-preflight-grokbot.netlify.app/api/preflight?url=https%3A%2F%2Fgas.apitoll.cloud%2Fv1%2Fbase%2Fgas%3Fblocks%3D20&method=GET&max_usd=0.05");
console.log(await res.json());Example input
{
"url": "https://gas.apitoll.cloud/v1/base/gas?blocks=20",
"method": "GET",
"max_usd": "0.05"
}