{"uid":"cap_B0QcPpf7dVgpNi3wYwhIj","slug":"base-simulate-7f3821ea","name":"base-simulate","description":"Simulate a Base mainnet transaction before sending it - will it succeed, estimated gas, and the decoded revert reason if it would fail.","url":"https://x402.agentindex.world/base/simulate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","title":"To"},"data":{"type":"string","title":"Data","default":"0x"},"value_wei":{"type":"integer","title":"Value Wei","default":0},"from_address":{"type":"string","title":"From Address"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LQdWQVWL2JhfjCy0DGt4O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulate a Base mainnet transaction to check if it will succeed, estimate gas usage, and decode revert reasons if it would fail.","exampleAgentPrompt":"Before I send this transaction, can you simulate it on Base mainnet to check if it'll succeed — the 'to' address is 0xAbC123..., the calldata is 0xa9059cbb000...abc, it's sending 0 wei, and my wallet is 0xDeF456...?","exampleUseCases":[{"title":"Pre-flight check before token transfer","prompt":"I'm about to send a USDC transfer on Base — can you simulate it first to make sure it won't revert? The recipient is 0x1234abcd..., my calldata is 0xa9059cbb..., value is 0 wei, and my address is 0xdeadbeef...."},{"title":"Debug a failing DeFi contract call","prompt":"My Uniswap swap on Base keeps failing — can you simulate the transaction and tell me the decoded revert reason? Contract is 0xUniswap..., calldata is 0x38ed1739..., value 0 wei, from my wallet 0xMywallet...."},{"title":"Gas estimation before batch deployment","prompt":"Before I deploy this batch of transactions on Base, can you simulate one of them and tell me the estimated gas? The target contract is 0xFactory..., calldata is 0x60806040..., sending 0 wei from 0xMyDeployer...."}],"resultDescription":"Returns whether the transaction would succeed or fail on Base mainnet, the estimated gas required, and if it would fail, the decoded revert reason explaining why (e.g. 'ERC20: insufficient allowance').","failureModes":["Invalid or malformed 'to' address returns a validation error","Malformed hex calldata causes a parse error","If the from_address has insufficient ETH balance, the simulation may fail with an out-of-gas or balance error","RPC node unavailability may cause a timeout or 503 error","Simulation of proxy contracts with unresolved logic may return unhelpful revert strings"],"whenToPreferThis":"Use this endpoint when you need to dry-run a specific Base mainnet transaction before broadcasting it — especially useful for validating smart contract calls, estimating gas, or diagnosing revert reasons without spending real ETH. Prefer this over general gas price checkers (which don't simulate specific calldata) or honeypot checkers (which focus on token sell-ability). Ideal for agent workflows that need a safety check before executing on-chain actions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:38:36.406Z","isFirstParty":false,"canonicalSlug":"base-simulate-7f3821ea"}