# DeFi Chains TVL API

> DeFi Chains TVL API is a paid API for AI agents from defi.memoryapi.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns all blockchain ecosystems ranked by Total Value Locked (TVL), or historical TVL data for a specific chain.

## Facts

- Endpoint: GET https://defi.memoryapi.org/x402/defi/chains
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-memoryapi-org-65da7170
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__bLmsXKaCCLkmScUv1OTG

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 defi-memoryapi-org-65da7170
```

Example prompt: Can you pull the latest TVL rankings for all blockchain ecosystems and also grab the historical TVL trend for Arbitrum so I can see how it's been performing?

## When to prefer this

Use this endpoint when you need a broad view of TVL across all blockchain ecosystems or need to track a specific chain's TVL over time. Prefer this over the protocol TVL endpoint when the focus is on chain-level aggregates rather than individual DeFi protocols, and over the yield/APY endpoint when you care about locked capital rather than yield rates.

## Known failure modes

- Unknown or misspelled chain identifier returns 404 or empty result
- Endpoint returns stale data if the underlying DeFi data source has a delay
- Rate limiting or payment failure (x402) if USDC balance is insufficient
- Historical data unavailable for very new or obscure chains

## How this service works

DeFi protocol TVL, yield/APY pools, and blockchain chain data powered by DefiLlama. Pay-per-call via x402 micropayments.

## Output

Returns a ranked list of all blockchain ecosystems with their current Total Value Locked (TVL) figures, or a time-series of historical TVL data for a specified chain, enabling cross-chain comparison and trend analysis.

## Response schema (JSON Schema)

```json
{
 "example": {
  "count": 150,
  "chains": [
   {
    "name": "Ethereum",
    "tvl_usd": 60000000000,
    "token_symbol": "ETH"
   }
  ],
  "source": "DefiLlama",
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-memoryapi-org-65da7170/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi.memoryapi.org](https://www.zero.xyz/host/defi.memoryapi.org/llms.txt)
