{"uid":"cap_N8qOz3nUxXk4i8hfL4ADi","slug":"chainray-chain-compare-c63f4cf9","name":"ChainRay Chain Compare","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/chain-compare","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":{"_proof":{"chain":"ethereum","dataHash":"42c78e09707b6440797f86e348c07b9e6c0cd21fd4f814cf74b257370eed158f","blockHash":"0xbf66dd2b3d549e7daa81d34bc2c4b7c278099c289e3748c065bbad10bbacf228","chainName":"Ethereum","blockNumber":25299076,"proofVersion":"3.0","blockTimestamp":1781239439,"proofTimestamp":1781239444199},"rankings":{"cheapestGas":"arbitrum","fastestBlock":"arbitrum"},"timestamp":1781239443901,"comparison":[{"gas":{},"defi":{"protocol":"Aave V3","bestSupplyAPY":"N/A","marketsAvailable":0},"name":"Arbitrum","chain":"arbitrum","blockTime":"0.25s"},{"gas":{},"defi":{"protocol":"Aave V3","bestSupplyAPY":"N/A","marketsAvailable":0},"name":"Base","chain":"base","blockTime":"2s"},{"gas":{},"defi":{"protocol":"Aave V3","bestSupplyAPY":"N/A","marketsAvailable":0},"name":"Ethereum","chain":"ethereum","blockTime":"12s"},{"gas":{},"defi":{"protocol":"Aave V3","bestSupplyAPY":"N/A","marketsAvailable":0},"name":"Optimism","chain":"optimism","blockTime":"2s"}],"chainsCompared":4}},"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_s70DQSl1kvewO92Ci5-fp","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":"Compares multiple blockchain networks side-by-side on gas fees, block time, and DeFi analytics, returning ranked results with verifiable on-chain proofs","exampleAgentPrompt":"Compare Ethereum, Arbitrum, and Base right now — which one has the cheapest gas and fastest block times, and what DeFi supply rates are available on each?","exampleUseCases":[{"title":"Find cheapest chain for token swap","prompt":"I need to swap some tokens today. Check the major L2s and Ethereum — which blockchain will cost me the least in gas, and show me the current block times so I know confirmation speed too."},{"title":"Optimize smart contract deployment costs","prompt":"We're deploying a new protocol and want to minimize gas spend. Compare Ethereum, Arbitrum, Base, and Polygon for deployment costs, and tell me which one is actually cheapest right now."},{"title":"Scout best DeFi yield opportunity","prompt":"I'm looking to supply USDC somewhere for yield. Scan the major chains and show me which has the best supply APY in Aave or comparable protocols, plus the gas fees to bridge and deposit there."}],"resultDescription":"Returns an array of chain objects each containing gas data, DeFi protocol info (best supply APY, available markets), block time, and chain name; plus a rankings object identifying the cheapest-gas and fastest-block chain; a timestamp; total chains compared; and a cryptographic on-chain proof (block hash, data hash, block number, proof version) anchored to a specific block for verifiability.","failureModes":["Unsupported chain identifier returns no matching comparison entry","Gas object may be empty if gas data is temporarily unavailable for a chain","DeFi APY may return 'N/A' if no active markets exist on that chain","Network timeout if underlying RPC nodes are unresponsive","Proof fields may lag slightly if block confirmation is delayed"],"whenToPreferThis":"Use this endpoint when an agent needs to choose the optimal blockchain for a transaction, deployment, or DeFi action and requires a verifiable, multi-chain comparison in a single call. Prefer it over single-chain gas endpoints when the user's goal is to identify the best chain rather than query a specific one. The verifiable proof makes it suitable for use cases requiring auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:49:40.636Z","isFirstParty":false}