{"uid":"cap_sLD31JoJx8IHK44VNh3UK","slug":"chainray-liquidity-prediction-5adfcd8b","name":"ChainRay Liquidity 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/liquidity","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":"liquidity-prediction","chain":"ethereum","model":"tvl-trend-v1","_proof":{"chain":"ethereum","dataHash":"ef8ff6dbad0a8988de13568ebb3cb386da0cd5ed226d7fe7d6ecef3eb03790da","blockHash":"0xc31ed7d7b09972eee34471578699905e83baca8436be3adbd953df78adc8af6a","chainName":"Ethereum","blockNumber":25299057,"proofVersion":"3.0","blockTimestamp":1781239211,"proofTimestamp":1781239216646},"current":{"tvl":0,"healthScore":92,"healthSource":"protocol-health-api","tvlFormatted":"$0"},"timestamp":1781239216444,"prediction":{"next24h":{"direction":"uncertain","confidence":0.3,"expectedRange":{"low":0,"high":0}},"riskFactors":["⚠️ No TVL data — unable to assess risk"]},"recommendation":"TVL uncertain — monitor before large deposits"}},"exampleRequest":{"chain":"ethereum"},"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X9B7JtXUOXJtlEBIjVeRl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Predicts liquidity conditions for a specified blockchain network using on-chain intelligence","exampleAgentPrompt":"Use ChainRay to predict the liquidity conditions on the Base network right now — I want to know if liquidity is deep or tight before executing a large swap.","exampleUseCases":[{"title":"Monitor liquidity before large swaps","prompt":"Check the liquidity forecast on Ethereum for me — I need to know if there's enough depth to execute a multi-million dollar token swap without slippage."},{"title":"Route trades across optimal chains","prompt":"Compare liquidity predictions across Polygon, Arbitrum, and Optimism so I can route my trade to whichever network has the deepest available liquidity right now."},{"title":"Assess DeFi protocol risks daily","prompt":"Give me a liquidity outlook on Base network for the next few hours — I want to make sure the DeFi pools I'm providing liquidity to won't become too tight or risky."}],"resultDescription":"Returns a liquidity prediction or forecast for the specified blockchain network, likely including a liquidity score or signal, depth indicators, or DeFi pool analytics that inform trading or protocol decisions.","failureModes":["Unsupported chain name returns error or empty result","Missing required 'chain' query parameter returns 400 or validation error","Payment not included or insufficient returns 402 Payment Required","Network-level timeout or upstream blockchain data unavailability returns 503","Invalid chain identifier returns error response"],"whenToPreferThis":"Use this endpoint when you need a forward-looking or current liquidity signal for a specific blockchain network before executing trades, routing intents, or assessing DeFi protocol risk. Prefer this over raw DEX data endpoints when you want a pre-computed intelligence signal rather than raw pool balances.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:32:29.334Z","isFirstParty":false}