{"uid":"cap_gaQ9yGRknDuv2UDGlOABU","slug":"evm-tx-toolkit-mtree-workers-dev-c9b99f21","name":"EVM Transaction Simulator (eth_call)","description":"Simulate an arbitrary EVM call with eth_call on Base, Ethereum, Arbitrum, Optimism, or Polygon and return success/revert status, decoded revert reason, return data, and gas estimate. Returns JSON. Price 0.20 USDC on Base via x402. Demo/preview: https://evm-tx-toolkit.mtree.workers.dev/demo/tx/simulate. Contact: https://evm-tx-toolkit.mtree.workers.dev/contact.","url":"https://evm-tx-toolkit.mtree.workers.dev/v1/tx/simulate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["chain","from","to"],"properties":{"to":{"type":"string","example":"0x0000000000000000000000000000000000000000","description":"target contract"},"data":{"type":"string","example":"0x","description":"calldata hex"},"from":{"type":"string","example":"0x0000000000000000000000000000000000000000","description":"msg.sender address"},"block":{"type":"string","example":"latest","description":"block tag or block number"},"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string","example":"base"},"value":{"type":"string","example":"0","description":"wei value"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.200000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.200000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TsBLNdfi5J_VYYCa0_Ohp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates an arbitrary EVM call via eth_call on Base, Ethereum, Arbitrum, Optimism, or Polygon and returns success/revert status, decoded revert reason, return data, and gas estimate.","exampleAgentPrompt":"Before I sign this transaction, simulate this contract call on Base — the to address is 0xabc123, from 0xdef456, with this calldata: 0xa9059cbb000...— will it succeed, and what gas will it use?","exampleUseCases":[{"title":"Decode DeFi swap revert reason","prompt":"I tried to submit a token swap on Uniswap on Arbitrum but it keeps failing. Can you simulate this calldata — to: 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45, from: 0xMyWallet, calldata: 0x5ae401d... — and tell me exactly why it's reverting?"},{"title":"Pre-flight check Polygon contract call","prompt":"Before I broadcast this NFT mint transaction on Polygon, can you do a dry-run for me? The contract is 0xAbCd1234, my wallet is 0xMyAddress, and here's the calldata: 0x6a627842000... — will it go through, and how much gas should I expect?"},{"title":"Validate token approval on Ethereum","prompt":"I want to approve a spending allowance for a DeFi protocol on Ethereum mainnet but I'm not sure if the call is set up correctly. Can you simulate it — to: 0xdAC17F958D2ee523a2206206994597C13D831ec7, from: 0xMyWallet, calldata: 0x095ea7b3... — and confirm it won't revert before I sign anything?"}],"resultDescription":"A JSON object containing: success or revert status, decoded revert reason (if applicable), raw return data from the call, and a gas estimate for the operation.","failureModes":["Invalid calldata format — returns error with parsing details","Unsupported chain specified — returns 400 with supported chain list","RPC node timeout for the target chain — returns 503","Malformed to/from address — returns 400 validation error","Payment not included or insufficient — returns 402 payment required","Call simulation itself reverts — returns 200 with revert status and decoded reason"],"whenToPreferThis":"Use this endpoint when you need to pre-flight check any EVM smart contract call before broadcasting, especially to detect reverts, decode revert reasons, and get accurate gas estimates across Base, Ethereum, Arbitrum, Optimism, or Polygon — ideal for DeFi agents, wallet UIs, or any workflow requiring pre-signing safety validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:34:35.309Z","isFirstParty":false,"canonicalSlug":"evm-tx-toolkit-mtree-workers-dev-c9b99f21"}