{"uid":"cap_nTsZ2NBhuaSwsBZkqNbYg","slug":"x402-gas-price-oracle-multi-chain-live-gas-swap-cost-9e708ac1","name":"x402 Gas Price Oracle — Multi-Chain Live Gas & Swap Cost","description":"Live gas prices across major chains (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC) with estimated USD cost of a swap. Send { chains? }. Time and route transactions for the cheapest execution.","url":"https://x402-services-production.up.railway.app/api/exec/gas","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chains":{"type":"object","description":"Optional array of chains; defaults to all supported"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F4gnwdL8iPDb1aktyCQPn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live gas prices and estimated USD swap costs across major EVM chains (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC), optionally filtered by chain.","exampleAgentPrompt":"What are the live gas prices on Base, Ethereum, Arbitrum, and Optimism right now, and how much would a swap cost in USD on each?","exampleUseCases":[{"title":"Find cheapest chain for swap","prompt":"I want to do a token swap but don't want to overpay on gas — can you check all the major EVM chains right now and tell me which one would be the cheapest to execute on?"},{"title":"Time transaction for lowest gas","prompt":"Gas has been expensive lately on Ethereum. Can you keep an eye on current gas prices across Ethereum, Arbitrum, and Optimism and let me know when it looks like a good time to send my transaction?"},{"title":"Compare L2 swap costs now","prompt":"I'm trying to decide whether to do my DeFi swap on Base, Arbitrum, or Optimism — what are the current gas fees on each and how much would a swap actually cost me in USD?"}],"resultDescription":"Returns current gas prices (in gwei or native units) and estimated USD cost of a standard swap for each requested chain (or all supported chains by default: Base, Ethereum, Arbitrum, Optimism, Polygon, BSC), enabling cost-based routing decisions.","failureModes":["Unsupported chain identifier returns an error or is silently ignored","Network congestion or RPC outage may cause stale or missing data for a specific chain","Empty chains object may default to all chains or return an error depending on payload parsing","Rate limiting if called too frequently without valid x402 payment"],"whenToPreferThis":"Use this endpoint when an agent needs to compare real-time gas prices and swap costs across multiple EVM chains simultaneously to route a transaction or time execution for minimum cost. Prefer this over chain-specific RPC calls when multi-chain comparison is the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:18.939Z","isFirstParty":false}