{"uid":"cap_1hXy3DJdcBhV6JjgIkZgn","slug":"defi-tvl-lookup-crypto-microdata-for-agents-x402-0be3b249","name":"DeFi TVL Lookup — Crypto Microdata for Agents (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/crypto/tvl?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":{"chain":{"type":"string","examples":["Base","Ethereum"],"maxLength":40,"description":"Chain name, e.g. Base, Ethereum, Solana"},"limit":{"type":"integer","maximum":50,"minimum":1,"description":"Top chains to list (default 15)"},"protocol":{"type":"string","examples":["aave"],"maxLength":60,"description":"DefiLlama protocol slug, e.g. aave, lido, aerodrome"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"defi":{"base":{"rank":5,"tvl_usd":3900000000,"share_pct":3.1},"flow":"flat","change_1d_pct":0.3,"change_7d_pct":-2.1,"total_tvl_usd":125000000000,"chains_counted":300,"change_30d_pct":4},"next":["/crypto/global-market","/crypto/stablecoin-peg"],"chain":{"flow":"flat","name":"Base","rank":5,"as_of":"2026-10-30","tvl_usd":3900000000,"chain_id":8453,"change_1d_pct":0.4,"change_7d_pct":-1.2,"change_30d_pct":5.6,"share_of_defi_pct":3.1},"signal":"NEUTRAL","source":"https://defillama.com","reasons":["DeFi TVL $125.0B, 7d -2.1%","Base #5 $3.90B, 7d -1.2% (flat)"],"top_chains":[{"name":"Ethereum","rank":1,"token":"ETH","tvl_usd":70000000000,"share_pct":56}],"updated_at":"2026-10-30T02:30:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-mYjqZAHosaJG7N4zWHJ1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns DeFi total value locked (TVL) data by chain and protocol, including rankings, flow signals, and 1d/7d/30d change percentages, paid via x402 USDC micropayment.","exampleAgentPrompt":"What's the current TVL on Base — its rank, 7-day change, and whether it's gaining or losing share of total DeFi?","exampleUseCases":[{"title":"Chain TVL comparison for trading decision","prompt":"I'm deciding whether to deploy liquidity on Base or Ethereum — can you pull the current TVL ranking, 7-day change, and flow signal for both chains so I can compare?"},{"title":"Protocol TVL health check","prompt":"What's Aave's current TVL and how has it changed over the past 7 and 30 days? I want to know if it's growing or contracting."},{"title":"DeFi market overview for daily briefing","prompt":"Give me a quick DeFi TVL overview — total TVL across all chains, the top 15 chains by size, and whether the overall trend is up or down this week."}],"resultDescription":"Returns a JSON object containing: overall DeFi TVL (total USD, 1d/7d/30d change), chain-specific data (rank, TVL, share of DeFi, flow direction, chain ID), a top-chains list with token and share, a NEUTRAL/BULLISH/BEARISH signal with human-readable reasons, the data source (DefiLlama), timestamp, and suggested next endpoints to call.","failureModes":["Unknown chain name returns empty or null chain object","Protocol slug not found returns no protocol-specific data","Payment not completed (402) blocks data return","Stale data if DefiLlama upstream is delayed","Limit parameter out of range (must be 1–50) returns validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs structured, agent-ready DeFi TVL data with pre-computed signals and no API key setup — especially when operating on Base with x402 micropayment support. Prefer over raw DefiLlama API when you need a normalized signal (NEUTRAL/BULLISH/BEARISH), chain rankings, and suggested next data calls in a single response. Best for trading agents, onchain portfolio managers, or daily DeFi briefing pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:38.905Z","isFirstParty":false,"canonicalSlug":"defi-tvl-lookup-crypto-microdata-for-agents-x402-0be3b249"}