{"uid":"cap_WvZHTylE0ZFYeH56wKx3s","slug":"chainray-gas-fee-prediction-5ced5abe","name":"ChainRay Gas Fee Prediction","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/predict/gas","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":{"type":"gas-prediction","chain":"ethereum","model":"ema-trend-v1","trend":"insufficient_data","_proof":{"chain":"ethereum","dataHash":"81f09dc136ea044624d1c9f5f8ce2001b0560c6b4463bcc907a1d8badb0e9d12","blockHash":"0xe63db22ab7b7414f07841042cecdab522fa86a1b8171ab458f5f0376e9d5178f","chainName":"Ethereum","blockNumber":25342560,"proofVersion":"3.0","blockTimestamp":1781762951,"proofTimestamp":1781762962965},"current":{"baseFee":10},"timestamp":1781762962920,"dataPoints":1,"prediction":{"next1hr":{"low":9,"high":12,"median":10,"confidence":0.32},"next5min":{"low":10,"high":11,"median":10,"confidence":0.52}},"volatility":0,"recommendation":"Stable — execute when ready","historySpanSeconds":0}},"exampleRequest":{"chain":"ethereum"},"tags":["x402"],"displayCostAmount":"0.01","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.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_CxGusxv8x5ymEs7v4PC-k","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 predicted gas fees for a specified blockchain network","exampleAgentPrompt":"What are the predicted gas fees on Base right now? I want to know if it's cheap enough to submit my transaction.","exampleUseCases":null,"resultDescription":"Returns predicted gas fee data for the requested blockchain network, including current gas price estimates that an agent can use to decide whether to proceed with a transaction or optimize timing.","failureModes":["Unsupported chain identifier returns an error or empty result","Missing required chain parameter may return a default or error","Payment failure (402) if x402 payment header is not included or USDC balance is insufficient","Network timeout if the blockchain RPC is slow or unavailable","Rate limiting if too many requests are sent in quick succession"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time or predicted gas fee data for a specific blockchain before submitting or recommending a transaction. It covers 46 chains including Base, Ethereum, and Polygon, making it ideal for multi-chain applications. Prefer this over generic RPC calls when you need prediction (not just current) data and want a simple pay-per-request model without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:28.700Z","isFirstParty":false}