{"uid":"cap_Y8DxfS33nzy1g1Pj8kQWA","slug":"saylor-innovations-gas-estimator-base-network-329d3267","name":"Saylor Innovations Gas Estimator (Base Network)","description":"Gas Estimate (base) — On-Chain Data","url":"https://saylorinnovations.com/api/evm/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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{"to":{"type":"string","description":"0x target (query)"},"data":{"type":"string","description":"optional 0x calldata (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","reverted"],"properties":{"gas":{"type":["number","null"]},"chain":{"type":"string"},"error":{"type":["string","null"]},"native":{"type":"string"},"reverted":{"type":"boolean"},"est_fee_native":{"type":["string","null"]},"gas_price_gwei":{"type":["number","null"]}}}}}}},"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_ShU54vTGGqCEBouyebyjI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates gas cost for a transaction on the Base EVM network, returning gas units, gas price in gwei, and estimated fee in native currency.","exampleAgentPrompt":"Can you estimate the gas cost for a transaction on Base to the contract at 0xAbCd1234...5678, using calldata 0xa9059cbb...?","exampleUseCases":[{"title":"Pre-flight DeFi swap cost check","prompt":"Before I submit this swap on Base, can you estimate how much gas it will cost to call 0x1234abcd...ef with this calldata: 0xa9059cbb000...? I want to know the fee in ETH before I commit."},{"title":"Revert detection before submission","prompt":"I'm about to send a transaction on Base to contract 0xDeAdBeEf...1234 with calldata 0x095ea7b3.... Can you simulate it first and tell me if it would revert and what the gas estimate is?"},{"title":"Gas budget planning for agent workflow","prompt":"My agent needs to batch several Base transactions — can you check the gas estimate for a call to 0xFeed1234...5678 so I can figure out if my wallet has enough ETH to cover the fees?"}],"resultDescription":"Returns a JSON object with: the chain identifier ('base'), estimated gas units required, current gas price in gwei, estimated fee in native ETH, a boolean indicating if the transaction would revert, and an error message if applicable. Gas and fee fields may be null if the call fails.","failureModes":["Invalid or malformed 'to' address returns an error message with null gas fields","Transaction simulation reverts — reverted field is true and error describes the revert reason","Network congestion or RPC unavailability may cause delays or errors","Missing required 'to' parameter results in a bad request response","Calldata that triggers out-of-gas conditions may return null gas estimate"],"whenToPreferThis":"Use this endpoint when you need a quick gas estimate specifically on the Base network before submitting a transaction. Prefer it over generic RPC calls when you want a structured, pay-per-call API that returns gas units, gwei price, and native fee together in one response. Best suited for agents that need to validate transaction affordability or detect reverts prior to execution on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:46.487Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-gas-estimator-base-network-329d3267"}