{"uid":"cap_aKmPatmFf9aiUC_0RAlcQ","slug":"multi-chain-gas-compare-d5e0f008","name":"Multi-Chain Gas Compare","description":"Reads the live gas price on each major EVM chain an agent uses (base, arbitrum, optimism, ethereum, polygon) and turns it into the USD cost of the actions that matter — a plain transfer and a DEX swap — using live native-token prices. Returns one ranked answer with the cheapest chain, so an agent deciding where to settle doesn't make five RPC calls. A chain it could not read is 'unknown' and excluded from the pick, never guessed. Gas units are typical estimates. Not financial advice.","url":"https://402.com.tr/api/x402/multi-chain-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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_vZMnlmfGkaaM6NVPV0coT","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":"Fetches live gas prices across five major EVM chains and returns ranked USD costs for a token transfer and DEX swap, identifying the cheapest chain to settle on.","exampleAgentPrompt":"Before I execute this swap, check the live gas prices across Base, Arbitrum, Optimism, Ethereum, and Polygon and tell me which chain would cost the least in USD for a DEX swap right now.","exampleUseCases":[{"title":"Cheapest chain for DeFi settlement","prompt":"I need to settle a position and want to spend the least on gas — can you check live gas costs across all the major EVM chains and tell me which one is cheapest for a DEX swap right now in USD?"},{"title":"Cross-chain cost dashboard for agent fleet","prompt":"Before any of my agents submit transactions, I want them to pull the current USD gas cost for a standard transfer on Base, Arbitrum, Optimism, Ethereum, and Polygon, ranked from cheapest to most expensive."},{"title":"Gas-aware routing for token bridge","prompt":"I'm about to bridge tokens and need to pick the destination chain — can you fetch live gas prices on all five major EVM chains and show me the USD cost of a transfer on each so I can pick the cheapest?"}],"resultDescription":"Returns a ranked list of EVM chains (Base, Arbitrum, Optimism, Ethereum, Polygon) ordered from cheapest to most expensive, with the USD cost of a standard ETH transfer and a typical DEX swap on each chain based on live gas prices and live native token prices. Identifies the single cheapest chain for quick decision-making. Chains that could not be read are marked 'unknown' and excluded from the ranking.","failureModes":["One or more chains unreachable — those chains returned as 'unknown' and excluded from ranking rather than guessed","Stale native token price if price feed is delayed — USD costs may be slightly off","All chains unavailable — empty or error response returned","Network timeout on RPC reads causing partial results"],"whenToPreferThis":"Use this endpoint when an agent needs to decide on which EVM chain to execute a transaction and wants a single ranked answer without making five separate RPC calls. Ideal for gas-aware routing logic in DeFi agents, bridging decisions, or cost optimization across L2s. Prefer this over manually querying each chain's gas API when you need USD-denominated costs (not just gwei) and a direct cheapest-chain recommendation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:42:06.144Z","isFirstParty":false,"canonicalSlug":"multi-chain-gas-compare-d5e0f008"}