{"uid":"cap_xj5-CzJhSjcgJm_Fy1XHN","slug":"crypto-chain-momentum-tvl-rankings-x402-5119a655","name":"Crypto Chain Momentum & TVL Rankings (x402)","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/v1/crypto/chains?utm_source=zero.xyz","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":{"sort":{"enum":["momentum","tvl","volume"],"type":"string","description":"Ranking key (default momentum)"},"chain":{"type":"string","examples":["Base"],"maxLength":40,"description":"Optional chain to focus, e.g. Base, Solana, Hyperliquid"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"next":["/crypto/defi-tvl?chain=Base","/crypto/gas-compare"],"sort":"momentum","focus":{"rank":1,"chain":"Base","trend":"GROWING"},"chains":[{"rank":1,"chain":"Base","flags":[],"trend":"GROWING","tvl_usd":5780000000,"chain_id":8453,"tvl_flow":"flat","tvl_usd_rank":3,"tvl_share_pct":5.1,"momentum_score":11.1,"dex_volume_7d_usd":6848442299,"tvl_change_7d_pct":2.1,"dex_volume_24h_usd":1466645030,"dex_volume_30d_usd":29794587087,"tvl_change_30d_pct":4,"momentum_score_rank":1,"dex_volume_7d_usd_rank":4,"dex_change_7d_over_7d_pct":16.9,"dex_change_30d_over_30d_pct":10.17}],"source":"DefiLlama DEX volume + chain TVL (10 min cache)","summary":{"growing":["Base"],"shrinking":[],"biggest_by_tvl":"Ethereum","busiest_dex_7d":"Solana","fastest_growing":"Base"},"updated_at":"2026-10-30T07:30:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QNoMQVS9oU_NqoJ00C0Vq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ranked blockchain chain data by momentum, TVL, or DEX volume — including trend signals, TVL flows, and chain IDs — paid per-call via x402 USDC micropayment.","exampleAgentPrompt":"Show me which blockchains are growing the most right now — rank them by momentum and tell me Base's TVL, 7-day DEX volume, and whether it's trending up or down.","exampleUseCases":[{"title":"Pre-trade chain selection for DeFi agent","prompt":"Before I deploy capital, which blockchain has the highest momentum score right now? Show me the top chains ranked by momentum with their TVL and 7-day DEX volume so I can pick where to execute."},{"title":"Monitoring Base network growth","prompt":"Is Base still growing? Pull the latest TVL trend, 30-day DEX volume, and momentum score for Base specifically so I can track whether activity is accelerating or flattening."},{"title":"Cross-chain DeFi opportunity scan","prompt":"Rank all chains by TVL right now and tell me which ones are growing versus shrinking — I want to know the biggest by TVL, the busiest for DEX trading, and the fastest growing so I can spot where DeFi is heating up."}],"resultDescription":"Returns a JSON object with a ranked list of chains, each including momentum score, TVL in USD, TVL change over 7d and 30d, DEX volumes for 24h/7d/30d, trend label (GROWING/SHRINKING/FLAT), chain ID, TVL share percentage, and rank positions. Also includes a summary object with top chains by category (biggest TVL, busiest DEX, fastest growing) and suggested next endpoints to call. Data is sourced from DefiLlama with a 10-minute cache.","failureModes":["x402 payment not included or insufficient USDC — returns 402 Payment Required","Invalid sort enum value — returns 400 with allowed values","Unknown chain filter string — may return empty focus or no chain-specific data","DefiLlama upstream unavailable — may return stale cached data or 503","Rate limits exceeded for the worker — returns 429"],"whenToPreferThis":"Use this endpoint when an AI agent needs to compare blockchain ecosystems by DeFi activity metrics — momentum, TVL, or DEX volume — without needing an API key. Prefer it over direct DefiLlama API calls when operating in an x402 micropayment context (USDC on Base) or when you want pre-ranked chain signals rather than raw data. Best for onchain trading agents selecting execution venues, DeFi portfolio agents monitoring ecosystem health, or any agent that needs a fast chain-level overview rather than token-level data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:21.653Z","isFirstParty":false,"canonicalSlug":"crypto-chain-momentum-tvl-rankings-x402-5119a655"}