# DefiLlama Chains by TVL

> DefiLlama Chains by TVL is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns current total-value-locked (TVL) for every blockchain chain tracked by DefiLlama.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/chains
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-chains-by-tvl-768eb715
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_thIMXJW9HH6OLMj4zqZCu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability defillama-chains-by-tvl-768eb715
```

Example prompt: Pull the latest total value locked for every chain tracked by DefiLlama so I can see which blockchains are leading in DeFi activity right now.

## When to prefer this

Use this endpoint when you need a comprehensive snapshot of TVL across all chains simultaneously from DefiLlama — ideal for ranking chains, building dashboards, or comparing DeFi ecosystem sizes. Prefer this over per-chain queries when you need the full multi-chain picture in a single call.

## Known failure modes

- Payment failure (402): USDC micropayment not accepted or insufficient balance
- Upstream DefiLlama data unavailable: service may return empty or stale data
- Rate limiting: too many requests in a short window
- Network timeout if DefiLlama upstream is slow

## How this service works

Chains by TVL from DefiLlama — current total-value-locked for every tracked chain.

## Output

A list of all tracked blockchain chains, each with their current total-value-locked (TVL) in USD, chain name, and associated metadata — suitable for ranking, comparison, or DeFi market analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "tvl": 123000000000,
    "name": "Ethereum",
    "gecko_id": "ethereum",
    "tokenSymbol": "ETH"
   }
  ],
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-chains-by-tvl-768eb715/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
