{"uid":"cap_GNBnX2FOAqz4FCzniK-PW","slug":"defillama-chain-wide-tvl-lookup-ef1b533d","name":"DeFiLlama Chain-Wide TVL Lookup","description":"Current TVL (total value locked) of an entire blockchain (all protocols combined) — chain-wide TVL, source DefiLlama. Parameter: ?chain=<slug> (e.g. base, ethereum, arbitrum, solana).","url":"https://x402-seller-0ay3.onrender.com/api/defi/tvl-chain","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","required":["chain"],"properties":{"chain":{"type":"string","description":"DefiLlama chain slug (e.g. base, ethereum, arbitrum)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"as_of":"2026-09-01T00:00:00.000Z","chain":"base","source":"https://api.llama.fi/v2/historicalChainTvl/base","tvl_usd":5500000000,"fetched_at":"2026-09-01T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J4F5Pl6AnjiJV8p9mRnTr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current total value locked (TVL) in USD across all DeFi protocols on a specified blockchain, sourced from DefiLlama.","exampleAgentPrompt":"What's the total value locked across all DeFi protocols on Base right now? Give me the chain-wide TVL from DefiLlama.","exampleUseCases":[{"title":"DeFi ecosystem health dashboard","prompt":"Pull the current total value locked on Ethereum from DefiLlama so I can update our DeFi market dashboard."},{"title":"Cross-chain TVL comparison","prompt":"What's the current chain-wide TVL for Arbitrum? I want to compare it against Optimism and Base to see which L2 has the most DeFi activity."},{"title":"Solana DeFi growth tracking","prompt":"Check the total TVL locked across all protocols on Solana right now — I'm tracking whether it's been growing this quarter."}],"resultDescription":"A JSON object containing the chain slug, total TVL in USD as a number, the timestamp of the data point, when it was fetched, and the DefiLlama source URL used to retrieve it.","failureModes":["Invalid or unrecognized chain slug returns an error — use DefiLlama-compatible slugs like 'ethereum', 'base', 'arbitrum'","Chain not indexed by DefiLlama returns null or empty TVL","Upstream DefiLlama API downtime causes fetch failure","Missing required 'chain' query parameter returns a validation error","Payment not included or insufficient USDC results in HTTP 402"],"whenToPreferThis":"Use this endpoint when you need aggregate, chain-wide TVL rather than TVL for a specific protocol. It is ideal for macro DeFi analysis, cross-chain comparisons, or monitoring the overall health of a blockchain's DeFi ecosystem. Prefer this over protocol-specific TVL endpoints when the question is about the entire chain rather than a single dApp.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:37.154Z","isFirstParty":false}