{"uid":"cap_fHLIgMXYHaD90kQUPuhAK","slug":"vextorium-gas-price-multi-chain-comparator-8907b214","name":"Vextorium Gas Price Multi-Chain Comparator","description":"558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/gas-compare-chains?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"note":{"type":["string","null"]},"networks":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"native":{"type":["null","string"]},"network":{"type":["null","string"]},"gas_gwei":{"type":["null","number"]},"swap_usd":{"type":["null","number"]},"transfer_usd":{"type":["null","number"]},"token_transfer_usd":{"type":["null","number"]}}}},"cheapest_swap":{"type":["string","null"]},"native_prices_usd":{"type":["object","null"],"properties":{"eth":{"type":["number","null"]},"pol":{}}}}}}}}},"responseSchema":{"type":"json","example":{"note":"On L2s (Base, Arbitrum, Optimism) a small L1 data fee is added that is not included here.","networks":[{"native":"ETH","network":"base","gas_gwei":0.006008,"swap_usd":0.00293,"transfer_usd":0.00034,"token_transfer_usd":0.00106},{"native":"ETH","network":"ethereum","gas_gwei":0.902926,"swap_usd":0.44,"transfer_usd":0.05133,"token_transfer_usd":0.15889}],"cheapest_swap":"optimism","native_prices_usd":{"eth":2707.22696629,"pol":null}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TWcQKBPW-6FMKWHyDVKfq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas prices and estimated USD transaction costs (native transfer, ERC-20 transfer, swap) across Base, Ethereum, Arbitrum, Optimism, and Polygon, plus identifies the cheapest chain for swaps.","exampleAgentPrompt":"What are the current gas prices on Base, Ethereum, Arbitrum, Optimism, and Polygon right now, and which chain is cheapest to do a swap on — show me the USD cost for a native transfer, ERC-20 transfer, and swap on each?","exampleUseCases":[{"title":"Finding cheapest chain for DeFi swap","prompt":"I want to do a DeFi swap but gas fees vary a lot — can you check gas prices across Base, Arbitrum, Optimism, Ethereum, and Polygon right now and tell me which chain would be cheapest for a swap?"},{"title":"Estimating token transfer costs before bridging","prompt":"Before I bridge my USDC, can you tell me how much an ERC-20 token transfer would cost in USD on each of the major EVM chains right now — Base, Ethereum, Arbitrum, Optimism, and Polygon?"},{"title":"Monitoring gas spikes for automated alert","prompt":"Check the current gas prices in gwei and estimated swap costs across all five chains — Base, Ethereum, Arbitrum, Optimism, and Polygon — and let me know if Ethereum mainnet gas is above 5 gwei."}],"resultDescription":"Returns a JSON object with an array of per-network gas data (gas in gwei, native token symbol, USD cost of native transfer, ERC-20 transfer, and swap), the name of the cheapest chain for swapping, and current native asset prices in USD (ETH, POL). Also includes a note about L2 chains having an additional L1 data fee not captured in the estimates.","failureModes":["External RPC or gas oracle unavailable — may return null values for affected networks","Native token price feed unavailable — price fields may be null (e.g. pol: null)","Network congestion or timeout causing stale or missing gas data for one or more chains","Invalid or missing request body causing 400-level error"],"whenToPreferThis":"Use this endpoint when you need a real-time, multi-chain gas fee comparison across the five major EVM networks (Base, Ethereum, Arbitrum, Optimism, Polygon) in a single call. It is ideal when you need to route a transaction to the cheapest chain, estimate USD costs for common transaction types (native transfer, ERC-20 transfer, swap), or surface gas data to end users before they sign a transaction. Prefer this over individual chain RPC calls when you need normalized, USD-denominated cost estimates across all chains simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:37:46.645Z","isFirstParty":false,"canonicalSlug":"vextorium-gas-price-multi-chain-comparator-8907b214"}