{"uid":"cap_kHnTbdEKQXT9DuWWP5xa6","slug":"x402-ethereum-transaction-simulator-0b1579d9","name":"x402 Ethereum Transaction Simulator","description":"Pay-per-call Ethereum mainnet tools for agents: simulate a tx, check it before signing, explain a mined tx, broadcast a signed tx privately. USDC on Base via x402. No signup, no API key.","url":"https://sim.0xrelay.party/simulate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["from"],"properties":{"to":{"type":"string","description":"target address"},"gas":{"type":"string"},"data":{"type":"string","description":"0x calldata"},"from":{"type":"string","description":"sender address"},"block":{"type":"string","description":"latest or block number"},"calls":{"type":"array","description":"bundle of calls instead of a single call"},"value":{"type":"string","description":"wei, decimal or 0x"}}},"responseSchema":{"block":"object","calls":"array","success":"bool","balanceChanges":"array"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cVseZaAzFqPogLThjR8PN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates an Ethereum mainnet transaction (or bundle of calls) and returns success status, balance changes, and block context before any signing or broadcasting occurs.","exampleAgentPrompt":"Before I sign anything, simulate this Ethereum transaction for me: sender is 0xAbC...123, target is 0xDef...456, calldata is 0xa9059cbb000...0064, value is 0 wei — tell me if it'll succeed and what balance changes to expect on the latest block.","exampleUseCases":[{"title":"DeFi swap safety check","prompt":"I'm about to do a Uniswap swap from 0xMyWallet — can you simulate the calldata 0x414bf389...0064 against the Uniswap v3 router at 0xE592427A...5600 with 0 wei value on the latest block and tell me if it succeeds and what token balance changes I'll see?"},{"title":"Detect revert before signing","prompt":"I have a contract call I'm worried might revert — sender 0xAbC...111, target 0xContractAddr...999, data is 0x095ea7b3...ffff, no ETH value. Simulate it on mainnet at the latest block and let me know if it goes through or hits an error."},{"title":"Multi-call bundle preview","prompt":"Can you simulate this bundle of three Ethereum calls for me — from address 0xMyAgent...777 — and show me the combined balance changes across all three calls before I decide whether to broadcast them?"}],"resultDescription":"Returns whether the simulation succeeded (bool), an array of individual call results, an array of balance changes showing which addresses gained or lost ETH/tokens, and the block context (number and timestamp) the simulation ran against.","failureModes":["Invalid or malformed 'from' address returns a 400-level error","Reverted transaction returns success=false with revert reason in call results","Unknown block number causes simulation failure","Malformed calldata (non-hex or truncated) may cause decoding errors","Payment failure via x402 (insufficient USDC on Base) blocks the call entirely","Network congestion or node unavailability may delay or fail the simulation"],"whenToPreferThis":"Use this endpoint when an AI agent needs to pre-flight an Ethereum transaction before signing or broadcasting — especially for DeFi operations, contract interactions, or token transfers where a revert would waste gas or cause unintended state changes. Prefer this over on-chain execution when you need a zero-risk preview of balance changes, or when validating AI-generated calldata before committing. The pay-per-call x402 model (no API key required) makes it ideal for autonomous agents that need on-demand simulation without account setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T12:40:40.743Z","isFirstParty":false,"canonicalSlug":"x402-ethereum-transaction-simulator-0b1579d9"}