{"uid":"cap_5gfnByyh04ssIAXF7_CI8","slug":"mint-intel-base-gas-estimator-b8794480","name":"Mint Intel: Base Gas Estimator","description":"Estimate the gas a Base 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/base/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_9Jdep6hKUAhUN9vtWGxr-","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 gas consumption, current gas price, and total ETH fee for a Base chain transaction before signing, or returns willFail with revert reason if it would fail.","exampleAgentPrompt":"Before I sign this Base transaction, estimate how much gas it'll use and what the total ETH fee will be — I'm sending from 0xAbC...sender to 0x1234...contract with this calldata: 0xa9059cbb000...and no ETH value attached.","exampleUseCases":[{"title":"Pre-flight check for ERC-20 transfer","prompt":"I'm about to send a USDC transfer on Base — can you estimate the gas and total ETH fee before I sign? From address is 0xSenderAddr, to is the USDC contract 0xA0b86991c..., with calldata 0xa9059cbb... and value 0."},{"title":"Detect revert before DeFi contract call","prompt":"I want to call a DeFi swap contract on Base but I'm worried it might revert — can you simulate the transaction with from 0xMyWallet, to 0xSwapRouter, data 0x38ed1739..., and value 50000000000000000 wei, and tell me if it will fail and why?"},{"title":"Cost estimate for NFT mint","prompt":"What will it cost in ETH to mint an NFT on Base? Simulate the transaction from 0xMinter to the NFT contract at 0xNFTContract with mint calldata 0x1249c58b and value 10000000000000000 wei."}],"resultDescription":"Returns a JSON object with willFail (boolean), and when successful: gasEstimate (integer gas units), current gas price (in wei), and estimated total fee in ETH. When the transaction would revert, willFail is true and a revert reason string is included.","failureModes":["Missing required 'to' address returns a 400 error","Invalid address format (non-hex or wrong length) causes a validation error","Calldata exceeding 12 KB limit is rejected","RPC node unavailability may cause transient 5xx errors","Transactions that revert return willFail:true with a revert reason rather than a hard error","Stale gas price if Base network conditions change rapidly between estimate and submission"],"whenToPreferThis":"Use this endpoint when you need to simulate a Base (Coinbase L2) transaction before signing to avoid wasted gas on failed transactions, preview ETH fees, or diagnose revert reasons. Prefer this over Ethereum mainnet estimators when the target chain is Base specifically. Ideal for wallets, DeFi agents, and NFT minting flows that need a dry-run before committing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:31.203Z","isFirstParty":false,"canonicalSlug":"mint-intel-base-gas-estimator-b8794480"}