{"uid":"cap__a2UaiZ3y5zHGwcnL-O1B","slug":"chainray-gas-average-oracle-800dbdc3","name":"ChainRay Gas Average Oracle","description":"The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.","url":"https://chainray.online/oracle/gas-avg","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":"Blockchain network (e.g., base, ethereum, polygon)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"chain":"ethereum"}}},"response":{"feeds":[{"fast":0.0243,"slow":0.02,"unit":"gwei","chain":"arbitrum","error":null,"trend":"stable","gasPrice":0.02,"standard":0.0201},{"fast":0.006,"slow":0.005,"unit":"gwei","chain":"base","error":null,"trend":"stable","gasPrice":0.005,"standard":0.005},{"fast":0.1677,"slow":0.1003,"unit":"gwei","chain":"ethereum","error":null,"trend":"increasing","gasPrice":0.1397,"standard":0.1219},{"fast":null,"slow":null,"unit":"gwei","chain":"optimism","error":null,"trend":"stable","gasPrice":null,"standard":null},{"fast":305.6093,"slow":248.3584,"unit":"gwei","chain":"polygon","error":null,"trend":"stable","gasPrice":248.7493,"standard":251.0247}],"_proof":{"chain":"ethereum","dataHash":"9f036233686fa50f1be4250b8ce1f5bee5371eaee3f03f423abc5b809d3288e5","blockHash":"0xbf66dd2b3d549e7daa81d34bc2c4b7c278099c289e3748c065bbad10bbacf228","chainName":"Ethereum","blockNumber":25299076,"proofVersion":"3.0","blockTimestamp":1781239439,"proofTimestamp":1781239445772},"timestamp":1781239445772,"oracleType":"gas-aggregate","chainsQueried":5,"recommendation":{"unit":"gwei","standardGas":0.005,"cheapestChain":"base"},"chainsResponded":5}},"exampleRequest":{"chain":"ethereum"},"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__kqGoIbRWynR9dPmFgkfe","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 the average gas fee for a specified blockchain network in real-time","exampleAgentPrompt":"What's the current average gas fee on Ethereum right now? I want to know if it's a good time to submit a transaction.","exampleUseCases":null,"resultDescription":"Returns the average gas price for the requested blockchain network, likely including values in Gwei or native units, along with the chain identifier and timestamp of the measurement.","failureModes":["Unsupported chain identifier returns an error or empty result","Missing chain parameter may default to a single chain or return an error","Payment of $0.005 USDC not received results in HTTP 402 rejection","Network downtime or RPC issues may cause stale or unavailable gas data","Invalid chain string returns a validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to check current average gas fees on a specific blockchain before submitting a transaction, estimating costs, or advising a user on timing. Prefer this over manual RPC calls when you need a normalized, multi-chain gas oracle with pay-per-request pricing and no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:50:18.639Z","isFirstParty":false}