{"uid":"cap_rZ6hgjMRZkGEPVykyhSOu","slug":"saylor-innovations-gas-estimate-polygon-3143753e","name":"Saylor Innovations Gas Estimate (Polygon)","description":"Gas Estimate (polygon) — On-Chain Data","url":"https://saylorinnovations.com/api/evm/polygon/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_01AWy9yoDNmBgrTNO4U8c","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 Polygon EVM network, returning gas units, gas price in gwei, and estimated fee in native token.","exampleAgentPrompt":"Before I send this transaction, can you estimate how much gas it will cost on Polygon to call 0xTargetContract with calldata 0xabcdef1234?","exampleUseCases":[{"title":"Pre-flight DeFi swap cost check","prompt":"I want to call the Uniswap router on Polygon at 0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506 with swap calldata 0xa9059cbb... — can you estimate the gas cost before I send it?"},{"title":"Detect reverting transaction before broadcast","prompt":"Will this transaction revert? I'm trying to call 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 on Polygon with calldata 0x095ea7b3 — check the gas estimate and tell me if it reverts."},{"title":"Optimize gas budget for batch automation","prompt":"I'm building an automation that sends multiple Polygon transactions per hour — can you estimate the gas for calling 0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063 so I can calculate my daily cost in MATIC?"}],"resultDescription":"Returns a JSON object with: chain identifier (e.g. 'polygon'), estimated gas units as a number, current gas price in gwei, estimated fee expressed in native token (MATIC), a boolean indicating whether the simulated transaction would revert, and an error string if estimation failed. Gas and fee fields are null if estimation fails.","failureModes":["Invalid or non-checksummed 'to' address returns error field with description","Transaction simulation reverts — reverted: true with null gas and error message explaining revert reason","Malformed calldata causes simulation failure","Network congestion or RPC unavailability may return error","Missing required 'to' query parameter results in bad request"],"whenToPreferThis":"Choose this endpoint when you need a gas estimate specifically on the Polygon (MATIC) network before submitting a transaction. Use it for pre-flight checks, cost forecasting, or detecting reverts without spending gas. Prefer it over Ethereum/Base siblings when your target contract is deployed on Polygon. It is a read-only simulation — no transaction is broadcast.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:45.034Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-gas-estimate-polygon-3143753e"}