{"uid":"cap_2iK_Ea5us1OH3mQ_WvRec","slug":"chainray-defi-opportunity-scanner-d02ea55c","name":"ChainRay DeFi Opportunity Scanner","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/defi-opportunity","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":{"tip":"Combine best yield with lowest gas timing for maximum returns.","chain":"ethereum","_proof":{"chain":"ethereum","dataHash":"3149079ca7fcd990f07b92eb6265ba7150b869b45dc324998fd1e86c698e1885","blockHash":"0xddbf699868462688bd4931db0ee9a9ffee3a2d59261af1007752c68563ff8ff3","chainName":"Ethereum","blockNumber":25342518,"proofVersion":"3.0","blockTimestamp":1781762447,"proofTimestamp":1781762456248},"yields":{"tip":"Supply APY and Borrow APY are from Aave V3 on-chain reserves. Rates fluctuate with utilization.","byChain":{"base":[{"chain":"base","token":"USDC","spread":1,"protocol":"Aave V3","borrowAPY":4.24,"supplyAPY":3.24},{"chain":"base","token":"WETH","spread":0.71,"protocol":"Aave V3","borrowAPY":2.21,"supplyAPY":1.5}]},"ranking":[{"chain":"base","token":"USDC","spread":1,"protocol":"Aave V3","borrowAPY":4.24,"supplyAPY":3.24},{"chain":"base","token":"WETH","spread":0.71,"protocol":"Aave V3","borrowAPY":2.21,"supplyAPY":1.5}],"timestamp":1781762443164,"highlights":{"cheapestBorrow":"WETH on base (2.21% APY)","bestSupplyYield":"USDC on base (3.24% APY)"},"chainsScanned":["base"],"tokensScanned":["USDC","WETH"],"totalOpportunities":2},"timestamp":1781762456163,"gasOptimization":{"chain":"ethereum","stats":{"max":0.139,"min":0.102,"mean":0.122,"volatility":"8.065%","sampledBlocks":50,"avgUtilization":"51.07%"},"current":{"unit":"Gwei","baseFee":0.107,"verdict":"CHEAP","vsAverage":"-12.504%"},"windows":[{"avgGas":0.113,"blocksAgo":"0-5","avgUtilization":"53.672%","relativeToMean":-7.443},{"avgGas":0.11,"blocksAgo":"5-10","avgUtilization":"50.846%","relativeToMean":-10.417},{"avgGas":0.119,"blocksAgo":"10-15","avgUtilization":"42.913%","relativeToMean":-2.963},{"avgGas":0.132,"blocksAgo":"15-20","avgUtilization":"44.825%","relativeToMean":7.775},{"avgGas":0.13,"blocksAgo":"20-25","avgUtilization":"58.359%","relativeToMean":6.601},{"avgGas":0.132,"blocksAgo":"25-30","avgUtilization":"52.547%","relativeToMean":7.682},{"avgGas":0.132,"blocksAgo":"30-35","avgUtilization":"42.086%","relativeToMean":7.557},{"avgGas":0.124,"blocksAgo":"35-40","avgUtilization":"63.253%","relativeToMean":1.335},{"avgGas":0.117,"blocksAgo":"40-45","avgUtilization":"46.271%","relativeToMean":-4.391}],"timestamp":1781762456163,"optimization":{"cheapestWindow":{"avgGas":0.11,"blocksAgo":"5-10","avgUtilization":"50.846%","relativeToMean":-10.417},"potentialSavings":"4.583%","estimatedWaitTime":"~1 minutes","mostExpensiveWindow":{"avgGas":0.132,"blocksAgo":"30-35","avgUtilization":"42.086%","relativeToMean":7.557}},"recommendations":["✅ NOW is a good time — gas is 12.504% below average"]},"recommendations":["Best yield: 3.24% APY on USDC (Aave V3 / base)"]}},"exampleRequest":{"chain":"ethereum"},"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PnvGwt5hPcy0fe7mSCofh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current DeFi opportunities (yield, pools, arbitrage, etc.) for a specified blockchain network","exampleAgentPrompt":"What are the current DeFi opportunities on Base right now — any good yield pools or arbitrage plays I should know about?","exampleUseCases":null,"resultDescription":"A list of current DeFi opportunities on the specified chain, likely including yield rates, pool details, protocol names, and opportunity scores or rankings. May include APY data, liquidity depth, risk indicators, and links to relevant protocols.","failureModes":["Unsupported chain identifier returns error or empty results","Rate limiting if called without valid x402 payment","No opportunities found for low-activity chains","Stale data if on-chain conditions change rapidly between calls","Payment failure via x402 results in 402 response"],"whenToPreferThis":"Use this endpoint when an agent needs to surface actionable DeFi yield or investment opportunities on a specific blockchain. Prefer over generic blockchain explorers when the goal is finding DeFi opportunities rather than raw transaction data. Best when the user wants curated, intelligence-layer insights rather than raw chain state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:38:35.335Z","isFirstParty":false}