{"uid":"cap_iPs1LLU9XGv9edU1ZKALl","slug":"saylor-innovations-gas-preflight-217e4327","name":"Saylor Innovations Gas Preflight","description":"Gas conditions for 7 EVM chains: base fee, trend, congestion, priority tips, suggested max fee and USD cost of a transfer, approval, swap and mint.","url":"https://saylorinnovations.com/api/gas/preflight?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","properties":{"chain":{"type":"string","description":"optional: ethereum, base (default), arbitrum, optimism, polygon, bsc or avalanche"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","native_symbol","block_number","base_fee_gwei","congestion","priority_fee_gwei","suggested_max_fee_gwei","cost_estimates","note","source"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"chain":{"type":"string","description":"Blockchain the data is for"},"source":{"type":"string","description":"Data source the values come from"},"l2_note":{"type":["string","null"],"description":"L2 note"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"congestion":{"type":"string"},"block_number":{"type":"number","description":"Block number"},"base_fee_gwei":{"type":"number","description":"Base fee per gas in gwei"},"native_symbol":{"type":"string","description":"Native symbol"},"base_fee_trend":{"type":"string","description":"Base fee trend"},"cost_estimates":{"type":"object","properties":{"dex_swap":{"type":["object"],"properties":{"fast":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"standard":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"gas_units":{"type":["integer"]}},"additionalProperties":true},"nft_mint":{"type":["object"],"properties":{"fast":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"standard":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"gas_units":{"type":["integer"]}},"additionalProperties":true},"erc20_approve":{"type":["object"],"properties":{"fast":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"standard":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"gas_units":{"type":["integer"]}},"additionalProperties":true},"erc20_transfer":{"type":["object"],"properties":{"fast":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"standard":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"gas_units":{"type":["integer"]}},"additionalProperties":true},"native_transfer":{"type":["object"],"properties":{"fast":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"standard":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"gas_units":{"type":["integer"]}},"additionalProperties":true},"contract_deploy_small":{"type":["object"],"properties":{"fast":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"standard":{"type":["object"],"properties":{"usd":{"type":["number"]},"native":{"type":["number"]}},"additionalProperties":true},"gas_units":{"type":["integer"]}},"additionalProperties":true}},"description":"Cost estimates","additionalProperties":true},"native_price_usd":{"type":["number","null"],"description":"Native price, in US dollars"},"block_age_seconds":{"type":"number","description":"Seconds since the latest block"},"priority_fee_gwei":{"type":"object","properties":{"fast":{"type":["number"]},"slow":{"type":["number"]},"standard":{"type":["number"]}},"description":"Priority fee, in gwei","additionalProperties":true},"gas_used_ratio_avg":{"type":["number","null"],"description":"Gas used ratio avg"},"suggested_max_fee_gwei":{"type":"object","properties":{"fast":{"type":["number"]},"slow":{"type":["number"]},"standard":{"type":["number"]}},"description":"Suggested max fee, in gwei","additionalProperties":true}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"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_hcsw_00Lpw1uXg6rTA9kv","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":"Returns real-time EVM gas conditions including base fee, trend, congestion, priority tips, suggested max fee, and USD cost estimates for common transaction types across 7 chains.","exampleAgentPrompt":"What are the current gas conditions on Arbitrum — give me the base fee, congestion level, and how much a token swap would cost in USD right now?","exampleUseCases":[{"title":"Pre-flight check before DeFi swap","prompt":"Before I submit this swap on Uniswap on Base, can you check the current gas fees and tell me if it's congested and what the swap will cost me in USD?"},{"title":"NFT mint cost estimation","prompt":"I want to mint an NFT on Polygon — what's the current gas situation and how much would the mint transaction cost me in dollars?"},{"title":"Cheapest chain selection for token transfer","prompt":"I need to send tokens and want to pay as little gas as possible — can you check gas conditions on Ethereum, Arbitrum, and Optimism and tell me which is cheapest for a basic transfer right now?"}],"resultDescription":"A JSON object containing: chain identifier, native symbol, latest block number, block age in seconds, base fee in gwei, base fee trend, congestion label, priority fee recommendations (gwei), suggested max fee (gwei), USD cost estimates for transfer/approval/swap/mint operations, native token USD price, gas used ratio, data source, and any L2-specific notes.","failureModes":["Unsupported chain name returns an error or empty response","Stale block data if upstream RPC is lagging (block_age_seconds will be high)","Native price USD may be null if price feed is unavailable","No historical data returned — only point-in-time snapshot","Network outages on specific chains may cause partial or missing fields"],"whenToPreferThis":"Use this endpoint when an agent needs real-time EVM gas data across multiple chains before submitting a transaction, estimating costs, or deciding which chain to use. It is particularly valuable for DeFi workflows (swaps, approvals, mints) where USD cost awareness matters. Prefer this over generic RPC calls when you need pre-computed congestion labels, trend signals, and cost breakdowns for common transaction types in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:38:25.170Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-gas-preflight-217e4327"}