Chain TVL ranking, blockchain TVL
Total value locked in DeFi on every blockchain from DefiLlama: up to 100 chains ranked by TVL with their share of the total, native token and chain id, or one chain by name. Use to compare L1s and L2s, size an ecosystem or pick where to deploy.
Inputs
| Name | Type | Description |
|---|---|---|
chain | string | One chain by name (Base, Solana); leave out for the ranking |
limit | integer | Number of chains (1-100, default 25) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/defi/chains?chain=Base"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/defi/chains?chain=Base&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"totalTvlUsd": 98000000000,
"count": 1,
"chains": [
{
"rank": 1,
"name": "Ethereum",
"tvlUsd": 61000000000,
"share": 62.24,
"token": "ETH",
"chainId": 1
}
],
"source": "DefiLlama (api.llama.fi)"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is defi_chains, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp