{"uid":"cap_YZQo1Ccui7zjl8qbfrp3S","slug":"base-chain-evm-call-simulator-c484e832","name":"Base Chain EVM Call Simulator","description":"Self-computed Base onchain toolkit for AI agents: ERC-20 safety scan, manipulation-resistant TWAP price oracle, gas/fee oracle, calldata decoder, token/address/contract intel, wallet approval-risk audit, and batch token triage — all computed live from raw Base chain, no third-party data.","url":"https://x402-data-api.bodhinindustries.workers.dev/simulate","method":"GET","headers":{},"bodySchema":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":"Target contract/address of the call."},"data":{"type":"string","description":"Calldata hex (0x..). Omit for a plain value transfer."},"from":{"type":"string","description":"Caller to simulate as (msg.sender)."},"value":{"type":"string","description":"ETH value in wei (integer string)."}}},"responseSchema":{"type":"object","properties":{"to":{"type":"string","description":"target"},"from":{"type":"string","description":"simulated caller (or null)"},"block":{"type":"integer","description":"Base block height"},"success":{"type":"boolean","description":"call did not revert"},"valueWei":{"type":"string","description":"value in wei"},"computedAt":{"type":"string","description":"ISO-8601 timestamp"},"returnData":{"type":"string","description":"returned data hex (or null)"},"willRevert":{"type":"boolean","description":"call reverts"},"gasEstimate":{"type":"string","description":"estimated gas units (or null if reverting)"},"revertReason":{"type":"string","description":"first line of the revert error (or null)"},"thirdPartyDataUsed":{"type":"boolean","description":"always false"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zKRRE6GQrJVXvqzMdol_b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates an EVM call or transaction on Base chain and returns success/revert status, gas estimate, return data, and revert reason — computed live from raw chain state without third-party data.","exampleAgentPrompt":"Before I actually send it, can you simulate this Base chain call to contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 using calldata 0xa9059cbb000000000000000000000000abc...0000000000000000000000000000000000000000000000000de0b6b3a7640000 from my wallet 0xDEF... and tell me if it will revert, what the revert reason is, and how much gas it would use?","exampleUseCases":[{"title":"Pre-flight DeFi swap check","prompt":"Before I submit this swap on Base, can you dry-run the transaction from my wallet 0xABC... to the Uniswap router at 0x2626664c2603336E57B271c5C0b26F421741e481 with my swap calldata and tell me if it'll succeed, what gas it'll burn, and if it reverts what the reason is?"},{"title":"Debug failing contract transaction","prompt":"My transaction to the lending protocol on Base keeps failing and I'm losing gas every time — can you simulate the call from 0xDEF... to contract 0x18Cd499E3d27F407Aa318f0a987780F7e2f6b95d with the same calldata and tell me exactly why it's reverting so I can fix it before sending again?"},{"title":"Preview NFT mint gas cost","prompt":"I want to mint an NFT from this Base contract at 0x7C4262f83e6775D6ff6fE8d9ab268611Ed9d13Ee but I'm not sure how much gas it'll cost or if the mint is even still open — can you simulate the mint call from my wallet and give me the gas estimate and whether it would go through right now?"}],"resultDescription":"Returns a JSON object with: whether the call succeeded or reverted (boolean), the revert reason string if it failed, estimated gas units if it succeeded, the raw return data hex, the Base block height at which it was simulated, the simulated caller and target addresses, ETH value in wei, a timestamp, and a flag confirming no third-party data was used.","failureModes":["Invalid address format for 'to' field — returns error","Malformed calldata hex string — may return unexpected revert or error","Contract does not exist at given address on Base — call succeeds with empty return data","Network/RPC timeout — returns HTTP 5xx","Payment not included or insufficient — returns HTTP 402","Very complex calls may hit gas limits and revert unexpectedly"],"whenToPreferThis":"Use this endpoint when you need a live, trustless simulation of an EVM call on Base chain without relying on any third-party data providers. Ideal for pre-flight checks before broadcasting transactions, gas estimation, revert debugging, and calldata validation against real Base chain state. Prefer this over static analysis tools when you need actual chain-state-aware simulation (e.g. checking real token balances, live contract storage).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:40:13.630Z","isFirstParty":false}