Skip to content
Fourohtwo

Transaction Preflight

www.omenz.org/api/tollbooth/v1/tx-preflight

Transaction Preflight: GO or STOP before your agent pays an x402 endpoint. Checks it answers, the live price is within max_price_usd, payTo matches expected_pay_to, the network is allowed, the asset is a known USD stablecoin, and flags drift from the price you were quoted/listed. Never pays the target. By OMENZ.

BaseAnswering
POSThttps://www.omenz.org/api/tollbooth/v1/tx-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://www.omenz.org/api/tollbooth/v1/tx-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"expected_pay_to":"0x1bd3aaa92243e3d4352bdce07050aec6fcf5e840","listed_price_usd":0.005,"max_price_usd":0.01,"method":"GET","networks":["base"],"url":"https://www.omenz.org/api/tollbooth/v1/alive"}),
});
console.log(await res.json());

Example input

{
  "expected_pay_to": "0x1bd3aaa92243e3d4352bdce07050aec6fcf5e840",
  "listed_price_usd": 0.005,
  "max_price_usd": 0.01,
  "method": "GET",
  "networks": [
    "base"
  ],
  "url": "https://www.omenz.org/api/tollbooth/v1/alive"
}