Skip to content
Fourohtwo

x402-web3-fin-gateway.vercel.app/api/v1/simulate-evm-tx

Executes live on-chain pre-flight simulation (`eth_call` + `eth_estimateGas` + EIP-1967 proxy & bytecode inspection + sender ERC-20 balance exposure) combined with deterministic calldata decoding across Base (`8453`), Ethereum (`1`), Arbitrum (`42161`), Celo (`42220`), Optimism (`10`), and Polygon (`137`). Flags revert errors, EOA calldata traps, unlimited approvals, and exact token/native blast r

BaseAnswering
POSThttps://x402-web3-fin-gateway.vercel.app/api/v1/simulate-evm-tx

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-web3-fin-gateway.vercel.app/api/v1/simulate-evm-tx", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x70a08231000000000000000000000000febdbb880c7f323c145d61683874a45540208a68","from":"0xfEbDbB880C7f323c145d61683874a45540208a68","chain":"base","value":"0"}),
});
console.log(await res.json());

Example input

{
  "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "data": "0x70a08231000000000000000000000000febdbb880c7f323c145d61683874a45540208a68",
  "from": "0xfEbDbB880C7f323c145d61683874a45540208a68",
  "chain": "base",
  "value": "0"
}