Skip to content
Fourohtwo

x402-tools.com/v1/x402-preflight

Give it the x402 endpoints your agent is about to call and your spending rules (per-request cap, total budget, allowed networks). It probes every endpoint without paying, in parallel, and returns which ones are safe to pay, the real price in USD, network and pay-to address of each, the total cost, and a plain reason for every endpoint it blocks (over the cap, over budget, testnet only, not a valid

BaseAnswering
POSThttps://x402-tools.com/v1/x402-preflight

Uptime100% 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

// 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://x402-tools.com/v1/x402-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"budget_usd":0.02,"max_price_usd":0.01,"networks":["base"],"urls":["https://x402-tools.com/v1/markdown","https://x402-tools.com/v1/image"]}),
});
console.log(await res.json());

Example input

{
  "budget_usd": 0.02,
  "max_price_usd": 0.01,
  "networks": [
    "base"
  ],
  "urls": [
    "https://x402-tools.com/v1/markdown",
    "https://x402-tools.com/v1/image"
  ]
}

More from x402-tools.comProvider status