{"uid":"cap_m3s5PB5aT3kf_MGgFKGBM","slug":"base-gas-oracle-x402-d4a79a14","name":"Base Gas Oracle (x402)","description":"Live gas cost comparison across Base, OP Mainnet, Arbitrum One, and Ethereum in one call, ranked cheapest first.","url":"https://base-gas-x402-production.up.railway.app/gas/compare","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","required":[],"properties":{"gasLimit":{"type":"integer","default":21000,"maximum":30000000,"minimum":21000,"description":"Gas units to price each chain against. Defaults to 21000 (a plain ETH transfer)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"basis":"current gas price x gasLimit","chains":[{"chain":"base","label":"Base","chainId":8453,"gasPrice":"0.006","blockNumber":"49106604","baseFeePerGas":"0.005","estimatedCost":{"eth":"0.000000126","gwei":"126","gasLimit":21000}}],"baseRank":1,"cheapest":"base","gasLimit":21000,"fetchedAt":"2026-07-25T18:02:36.639Z","unavailable":[],"baseVsEthereum":"Base is 240.5x cheaper than Ethereum"}},"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_wCHHWIlZuWT0rxd7U7SMS","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 live EIP-1559 gas fee tiers and estimated transaction costs for Base mainnet, payable per-call via x402.","exampleAgentPrompt":"What does gas cost right now on Base mainnet for a standard ETH transfer — give me the current base fee, priority fee tiers, estimated cost in ETH and gwei, and how it compares to Ethereum.","exampleUseCases":[{"title":"Pre-flight gas check before on-chain transaction","prompt":"Before I submit this transaction on Base, tell me the current gas price and what a 21000-gas transfer will cost me right now in ETH and gwei."},{"title":"Cost comparison for multi-chain routing decision","prompt":"I'm deciding whether to route this swap through Base or Ethereum — what's the current gas cost on Base versus Ethereum and how much cheaper is Base right now?"},{"title":"Gas price monitoring for automated agent workflow","prompt":"Check the live gas price on Base mainnet and tell me if it's under 0.01 gwei so my agent can decide whether to proceed with the transaction now or wait."}],"resultDescription":"A JSON object containing: current gas price in gwei, EIP-1559 baseFeePerGas, estimated transaction cost in ETH and gwei for the specified gasLimit (default 21000), the block number the data was read from, a fetchedAt timestamp, a ranking of Base versus other chains, the cheapest chain label, and a human-readable Base-vs-Ethereum cost comparison string (e.g. 'Base is 240x cheaper than Ethereum').","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 with x402 payment required details","Invalid gasLimit value (below 21000 or above 30,000,000) — returns 400 bad request","RPC node temporarily unavailable — chain may appear in 'unavailable' array with no data","Network timeout reading live chain data — may return partial results or 503"],"whenToPreferThis":"Choose this endpoint when you need real-time, live-read gas data specifically for Base mainnet (chain ID 8453) with no API key or subscription setup — just pay 0.005–0.01 USDC per call via x402. Ideal for agents that need on-demand gas estimates before submitting transactions, for cost-routing decisions between Base and Ethereum, or for monitoring gas conditions without managing credentials. Prefer this over generic multi-chain gas APIs when Base is your target chain and you want EIP-1559-structured output with a built-in cost comparison.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:21.955Z","isFirstParty":false}