{"uid":"cap_du208qfuq6IQ0uOBIn79o","slug":"x402node-gas-price-comparison-api-7ad7d594","name":"x402node Gas Price Comparison API","description":"Live gas price across Base, Ethereum, Arbitrum, Optimism, Polygon and BSC sorted cheapest first - lets agents pick the cheapest chain to execute an operation right now, real-time data that changes constantly and LLMs cannot know. gas comparison, cheapest chain, multi chain gas, gas prices, which chain cheapest, cross chain gas Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/chain/gas-compare","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{},"response":{"note":"Live gas price across chains, sorted cheapest first. Agents use to pick the cheapest chain to execute. Note: L2 gas excludes L1 data fee; actual cost also depends on token price per chain.","_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","chains":[{"chain":"optimism","gasPriceGwei":0.001},{"chain":"base","gasPriceGwei":0.006},{"chain":"arbitrum","gasPriceGwei":0.02031},{"chain":"bsc","gasPriceGwei":0.05},{"chain":"ethereum","gasPriceGwei":0.12079}],"source":"multi-rpc","cheapest":"optimism","timestamp":"2026-06-17T21:37:29.649Z"}},"exampleRequest":{},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_Fs6ehCPald1Oz2iuZh5kK","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 across Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC sorted cheapest-first so agents can pick the lowest-cost chain right now.","exampleAgentPrompt":"Which blockchain has the cheapest gas fees right now out of Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC — give me the full list sorted from cheapest to most expensive so I can decide where to execute my transaction.","exampleUseCases":null,"resultDescription":"A list of EVM chains (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC) with their current gas prices, sorted ascending from cheapest to most expensive, reflecting live on-chain data at the moment of the call.","failureModes":["RPC node unreachable for one or more chains — partial results or error returned","Network congestion causing stale or delayed gas data","Payment not accepted — 402 response if USDC payment header missing or insufficient","Rate limiting if called too frequently without valid payment"],"whenToPreferThis":"Use this endpoint when an agent needs to dynamically route a transaction or operation to the cheapest available EVM chain at execution time. Unlike LLM knowledge which is static, this provides real-time gas data that changes block-by-block. Prefer this over manual chain selection or hardcoded defaults whenever minimizing transaction cost matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:56:56.403Z","isFirstParty":false}