What happens if I sign this transaction
app.gtxagent.com/x402/preflight
What happens if I sign this transaction? Decode any Base call, check the target and the spender, reuse the token verdict, simulate it on-chain and return go / caution / no_go with every reason named. Pass assume=allowance to simulate a swap before the approval exists.
GET
https://app.gtxagent.com/x402/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
// 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://app.gtxagent.com/x402/preflight?data=0x095ea7b30000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000000000000f4240&to=0x4200000000000000000000000000000000000006");
console.log(await res.json());Example input
{
"data": "0x095ea7b30000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000000000000f4240",
"to": "0x4200000000000000000000000000000000000006"
}