{"uid":"cap_FsX99QCY0NKGXeF7iVIlr","slug":"meld402-gas-oracle-multi-chain-gas-price-feed-87ffe7f6","name":"meld402 Gas Oracle — Multi-Chain Gas Price Feed","description":"14 paid data endpoints for autonomous agents and developers. Covers crypto intelligence (token, chain, Solana, gas), markets (FX, market pulse), location (weather), and research (news, brief). Each route aggregates multiple public sources into one stable schema with a single USDC payment over x402 on Base.","url":"https://meld402.vercel.app/api/gas/oracle","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chains":{"type":"array","items":{"type":"string"},"description":"Specific chains to query (eth, polygon, arb, opt, base, etc.)"}}},"responseSchema":{"type":"json","example":{"data":{"chains":[{"network":"eth","timestamp":"2026-08-24T00:00:00.000Z","gas_price_wei":"20000000000","gas_price_gwei":20},{"network":"polygon","timestamp":"2026-08-24T00:00:00.000Z","gas_price_wei":"30000000000","gas_price_gwei":30},{"network":"arb","timestamp":"2026-08-24T00:00:00.000Z","gas_price_wei":"100000000","gas_price_gwei":0.1},{"network":"opt","timestamp":"2026-08-24T00:00:00.000Z","gas_price_wei":"50000000","gas_price_gwei":0.05},{"network":"base","timestamp":"2026-08-24T00:00:00.000Z","gas_price_wei":"20000000","gas_price_gwei":0.02}],"generated_at":"2026-08-24T00:00:00.000Z"},"meta":{"as_of":"2026-08-24T00:00:00.000Z","sources":["alchemy"],"degraded":[],"attribution":["Gas data by Alchemy (alchemy.com)"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OPekF-LPTTKGpDprw8OSU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas prices (in wei and gwei) for one or more EVM-compatible chains via a single USDC-paid API call backed by Alchemy.","exampleAgentPrompt":"Can you pull the current gas prices for Ethereum, Arbitrum, Base, and Optimism all at once so I can decide which chain to use for my transaction?","exampleUseCases":[{"title":"Optimal chain selection for DeFi trade","prompt":"Before I submit this swap, can you check the current gas prices on Ethereum, Arbitrum, and Base so I can pick the cheapest chain to execute on?"},{"title":"Gas monitoring dashboard for multi-chain agent","prompt":"Grab the latest gas oracle data for eth, polygon, arb, opt, and base and show me which networks are congested right now."},{"title":"Pre-transaction cost estimate","prompt":"I'm about to deploy a contract — what are the current gas prices in gwei on Ethereum and Polygon so I can estimate my deployment cost?"}],"resultDescription":"A JSON object containing an array of chain entries each with network name, timestamp, gas price in wei, and gas price in gwei; plus metadata including the data generation timestamp, source attribution (Alchemy), and a degraded list indicating any sources that returned partial or no data.","failureModes":["Invalid chain identifier returns an error or omits that chain from results","Alchemy API outage causes the chain to appear in the degraded list with partial or missing data","Payment failure over x402 returns a 402 response before data is delivered","Passing an empty chains array may return all supported chains or an error depending on implementation","Network timeouts from upstream providers cause stale or missing timestamps"],"whenToPreferThis":"Use this endpoint when you need current gas prices across multiple EVM-compatible chains in a single normalized API call, especially when you want to avoid integrating separately with Alchemy or multiple RPC providers. It is ideal for agents that need to compare gas costs across chains before routing a transaction, or for dashboards that display multi-chain fee data. The unified schema and single USDC micropayment model make it particularly suited for autonomous agent workflows on Base using x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:48:06.097Z","isFirstParty":false}