Skip to content
Fourohtwo

Tx Simulation

x402.freeq.one/tools/tx_simulation

Tx Simulation: Unsigned Base transaction preflight: eth_call preview, gas estimate, balance and code checks, ERC-20 transfer/approve decoding, PASS/REVIEW/FAIL verdict. Never signs or broadcasts. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/tx_simulation.

BaseAnswering
POSThttps://x402.freeq.one/tools/tx_simulation

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.freeq.one/tools/tx_simulation", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"to":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","gas":100000,"data":"0xa9059cbb","from":"0x90b0dc893406d6ea63bb077ed59f5e8340f98d84","value_wei":"0"}),
});
console.log(await res.json());

Example input

{
  "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "gas": 100000,
  "data": "0xa9059cbb",
  "from": "0x90b0dc893406d6ea63bb077ed59f5e8340f98d84",
  "value_wei": "0"
}

More from x402-gatewayProvider status