Pre-flight an x402 payment
quartermaster.surewhynot.app/v1/x402/simulate
Pre-flight an x402 payment: decode the endpoint's challenge, report the cost on every rail (Base and Solana) and the cheapest, and — with a payer address — verify the wallet can afford the call on Base.
GET
https://quartermaster.surewhynot.app/v1/x402/simulateUptimeNot checked yet
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://quartermaster.surewhynot.app/v1/x402/simulate?address=0xc2a36e22ecbf353086cf83e7beea78bc28a64083&url=https%3A%2F%2Fapi.example.com%2Fpaid-endpoint");
console.log(await res.json());Example input
{
"address": "0xc2a36e22ecbf353086cf83e7beea78bc28a64083",
"url": "https://api.example.com/paid-endpoint"
}