{"uid":"cap_4V71o80Zaq-WMGtBkOf4I","slug":"x402-gas-price-oracle-5ef196d5","name":"x402 Gas Price Oracle","description":"Current gas price and EIP-1559 fee estimate for a chain (base, ethereum, polygon, arbitrum, optimism)","url":"https://x402tap.com/api/gas-price?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"},"queryParams":{"type":"object","properties":{"chain":{"type":"string","description":"Chain to query: base, ethereum, polygon, arbitrum, optimism (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"Base","gasPriceGwei":0.012,"nativeSymbol":"ETH","maxFeePerGasGwei":0.015,"maxPriorityFeePerGasGwei":0.001}},"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_If0BH8XoSp8FWgaosvlgz","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 current gas price and EIP-1559 fee estimates (base fee, priority fee) for major EVM chains including Base, Ethereum, Polygon, Arbitrum, and Optimism","exampleAgentPrompt":"What are the current gas fees on Ethereum right now — give me the base fee and priority fee in Gwei so I know what to set for my transaction?","exampleUseCases":[{"title":"Pre-transaction fee estimation on Base","prompt":"Before I submit this transaction on Base, can you check the current gas price and EIP-1559 fee estimates so I know what maxFeePerGas and maxPriorityFeePerGas to use?"},{"title":"Cheapest chain comparison for DeFi","prompt":"I need to do a DeFi swap and want to pick the cheapest chain — can you pull the current gas prices for Arbitrum and Optimism so I can compare?"},{"title":"Gas spike monitoring on Ethereum","prompt":"Can you check the current gas price on Ethereum in Gwei? I want to know if it's spiked above normal before I approve this contract interaction."}],"resultDescription":"A JSON object containing the chain name, current gas price in Gwei, native token symbol (e.g. ETH), maxFeePerGasGwei (EIP-1559 max fee), and maxPriorityFeePerGasGwei (tip/priority fee) — all values are real-time estimates suitable for transaction fee configuration.","failureModes":["Unsupported chain name returns an error or empty response","Stale data if underlying RPC is delayed or unavailable","Network timeout if the chain RPC node is congested","Missing or misspelled chain query param defaults to Base silently"],"whenToPreferThis":"Use this endpoint when you need real-time EIP-1559-compatible gas fee data (base fee + priority fee) for one of the five supported chains (Base, Ethereum, Polygon, Arbitrum, Optimism) and want a simple, single-call lookup without running your own RPC node. Ideal for agents that need to estimate transaction costs or decide which chain to use based on current fees. Not suitable for historical gas price analysis or chains outside the supported set.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:30:39.766Z","isFirstParty":false,"canonicalSlug":"x402-gas-price-oracle-5ef196d5"}