Chain TVL ranking, blockchain TVL

$0.01 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

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.

Run it free (25 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

One chain by name (Base, Solana); leave out for the ranking

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
chainstringOne chain by name (Base, Solana); leave out for the ranking
limitintegerNumber 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

Related tools