Skip to content
Fourohtwo

Will this transaction go through

api.eucompliance.tools/x402/preflight

Will this transaction go through? Six checks before any gas is spent: gas vs balance, full simulation with the revert reason decoded, stuck nonces, contract or wallet recipient, ERC-20 allowance, and a sanctions screen of the counterparty. Returns send / do not send with every reason.

BaseAnswering
https://api.eucompliance.tools/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://api.eucompliance.tools/x402/preflight");
console.log(await res.json());