{"uid":"cap_tXFajXcriJmQFlpUAxpET","slug":"x402-gas-price-oracle-1b2344d7","name":"x402 Gas Price Oracle","description":"Current gas price and EIP-1559 fee estimate for a chain (base, ethereum, polygon, arbitrum, optimism)","url":"https://agentx402pay.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":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_iQ2vGLmYukN43W0kh2yXK","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 prices on Ethereum right now, including the EIP-1559 base fee and priority fee?","exampleUseCases":[{"title":"Pre-transaction gas check on Ethereum","prompt":"Before I send this Ethereum transaction, can you check what the current gas price and EIP-1559 fees look like on Ethereum mainnet so I know how much to budget?"},{"title":"Find cheapest chain to transact on","prompt":"I need to make an on-chain transaction and want to pick the cheapest network — can you check current gas prices on Base, Polygon, and Arbitrum for me?"},{"title":"DeFi bot gas monitoring on Base","prompt":"What's the current base fee and priority fee on Base chain right now? I need to know if gas is low enough to execute my DeFi trade profitably."}],"resultDescription":"Returns the current gas price and EIP-1559 fee breakdown (base fee and priority fee/max fee) for the requested EVM-compatible chain. Data reflects live on-chain conditions for chains including Base, Ethereum, Polygon, Arbitrum, and Optimism.","failureModes":["Unsupported chain name returns an error or defaults to Base","Stale data if upstream node is lagging","Network connectivity issues causing timeout","Invalid query parameter format returning a 400 error"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time gas fee data for EVM-compatible chains before submitting transactions, estimating costs, or deciding which chain to use. Prefer this over general crypto market APIs when you specifically need network fee data (gas) rather than token prices or market cap data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:57.477Z","isFirstParty":false,"canonicalSlug":"x402-gas-price-oracle-1b2344d7"}