{"uid":"cap_mzwMrLgUTgPjwdngrCHRK","slug":"saylor-innovations-gas-cost-comparator-6a69980b","name":"Saylor Innovations Gas Cost Comparator","description":"Cheapest chain for a transaction - USD cost of a transfer, token transfer, swap or NFT mint across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche and Linea","url":"https://saylorinnovations.com/api/gas/compare?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":{"action":{"type":"string","description":"optional transfer, erc20-transfer, nft-transfer, nft-mint, swap, or a gas-unit number; default transfer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["action","chains"],"properties":{"note":{"type":["string","null"],"description":"Caveat or context for reading the result"},"action":{"type":"string","description":"Action the figures are for"},"chains":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string","description":"Blockchain the data is for"},"cost_usd":{"type":"number","description":"Cost, in US dollars"},"cost_native":{"type":"number","description":"Cost native"},"native_token":{"type":"string","description":"Native token"},"base_fee_gwei":{"description":"Base fee per gas in gwei"},"gas_price_gwei":{"type":"number","description":"Gas price in gwei"},"native_price_usd":{"description":"Native price, in US dollars"},"priority_tip_gwei":{"description":"Priority tip, in gwei"},"l1_data_fee_native":{"description":"L1 data fee native"}}},"description":"Chains covered"},"cheapest":{"type":"object","description":"Cheapest option"},"gas_units":{"type":"number","description":"Gas units"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"chains_checked":{"type":["number","null"],"description":"Chains checked"},"most_expensive":{"type":"object","description":"Most expensive"},"chains_responding":{"type":["number","null"],"description":"Chains responding"},"cheapest_vs_most_expensive_x":{"type":["number","null"],"description":"Cheapest vs most expensive x"}}}}}}},"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_t5DtX5nmtun0pr05_RxA3","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 the USD cost of common blockchain actions (transfer, token transfer, swap, NFT mint) across 8 major EVM chains and identifies the cheapest option","exampleAgentPrompt":"Which chain has the cheapest gas for doing an ERC20 token transfer right now — compare across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, and Linea and tell me the USD cost on each.","exampleUseCases":[{"title":"Cheapest chain for NFT minting","prompt":"I'm about to mint an NFT collection — which blockchain has the lowest gas fees for an NFT mint right now across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, and Linea?"},{"title":"Optimal chain for DeFi swap routing","prompt":"I want to do a token swap — can you compare the current USD gas cost of a swap across all major EVM chains and tell me which one is cheapest?"},{"title":"Multi-chain gas cost dashboard update","prompt":"Pull the current gas fees for a simple ETH transfer across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, and Linea and show me which is cheapest and how much more expensive the priciest one is by comparison."}],"resultDescription":"A JSON object listing each of the 8 covered chains with its current gas price in gwei, base fee, priority tip, L1 data fee (for rollups), native token price in USD, cost in USD, and cost in the native token for the requested action type. Also includes a 'cheapest' and 'most_expensive' summary object, the ratio between them, total gas units used, number of chains checked and responding, and a timestamp of when the check was run.","failureModes":["One or more chains may be non-responsive at query time, reducing 'chains_responding' below 'chains_checked'","RPC congestion or latency spikes may cause stale or missing data for individual chains","Invalid 'action' query parameter value results in default 'transfer' behavior rather than an error","If all chain RPCs are down the response may return empty or null chain data"],"whenToPreferThis":"Use this endpoint when you need a real-time, cross-chain USD cost comparison for a specific action type (transfer, ERC20 transfer, NFT mint, NFT transfer, or swap) across all major EVM chains in a single call. It is ideal for agents routing transactions to the cheapest chain, DeFi dashboards, NFT minting tools, or any workflow where minimizing gas cost is a priority. Prefer it over per-chain gas APIs when you need a multi-chain summary and cheapest-chain recommendation in one round trip.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:43:02.657Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-gas-cost-comparator-6a69980b"}