{"uid":"cap_9DW5veQUXnht5kVl1-YmJ","slug":"mint-intel-ethereum-gas-estimator-eth-estimategas-a5bb7cbb","name":"Mint Intel: Ethereum Gas Estimator (eth_estimateGas)","description":"Estimate the gas a Ethereum transaction will consume via eth_estimateGas before signing it (?to=&from=&data=&value=): gas units, current gas price and estimated fee in ETH, or willFail with the revert reason when it would fail.","url":"https://mintintel.35-171-220-195.sslip.io/v1/eth/estimate-gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":"contract or recipient address (0x + 40 hex)"},"data":{"type":"string","description":"0x calldata (max 12 KB)"},"from":{"type":"string","description":"sender address (recommended)"},"value":{"type":"string","description":"wei to send (decimal or 0x hex)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["willFail"],"properties":{"willFail":{"type":"boolean"},"gasEstimate":{"type":"integer"}}}}}}},"responseSchema":null,"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_p2qliRPFIfMqV1WTq67oG","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":"Estimates the gas units, current gas price, and total ETH fee for an Ethereum transaction before signing, or returns the revert reason if the transaction would fail.","exampleAgentPrompt":"Before I sign this transaction, estimate how much gas it'll use and what the fee in ETH will be — I'm calling contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 from 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 with calldata 0xa9059cbb000000000000000000000000d8dA6BF26964aF9D7eEd9e03E53415D37aA960450000000000000000000000000000000000000000000000000000000005F5E100.","exampleUseCases":[{"title":"Pre-flight check before token transfer","prompt":"I'm about to send 100 USDC from 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 to 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B — can you estimate the gas and ETH fee for that transfer calldata before I sign it?"},{"title":"Debug a failing contract call","prompt":"My transaction to contract 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D keeps failing. Can you simulate the call with my calldata 0x38ed173900000000000000000000000000000000000000000000000000000000000f4240 from 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 and tell me the revert reason?"},{"title":"Gas cost estimate for DeFi swap","prompt":"Before I execute this Uniswap swap, estimate the gas units and total ETH fee for calling 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D with value 500000000000000000 wei from 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045."}],"resultDescription":"Returns a JSON object with a willFail boolean. If the transaction would succeed, also includes gasEstimate (integer gas units), the current gas price in wei, and the estimated total fee denominated in ETH. If willFail is true, the response includes the revert reason string explaining why the transaction would revert.","failureModes":["Missing required 'to' address returns a 400 or validation error","Invalid hex address format causes a parse error","Calldata larger than 12 KB is rejected","Node RPC unavailable causes a 5xx error or timeout","Simulating a transaction that would revert returns willFail:true with revert reason instead of gas estimate","Payment not included or invalid returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to simulate an Ethereum transaction before signing to avoid wasted gas on reverts, or when you want an accurate gas and ETH fee estimate for budgeting purposes. Prefer this over on-chain execution when you are building a preflight check in a DeFi workflow, debugging a failing contract call, or need the revert reason without spending gas. Specifically covers Ethereum mainnet; use the sibling Base chain endpoint for Base transactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:27.271Z","isFirstParty":false,"canonicalSlug":"mint-intel-ethereum-gas-estimator-eth-estimategas-a5bb7cbb"}