# BlockRun.AI DefiLlama TVL by Chain

> BlockRun.AI DefiLlama TVL by Chain is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns current Total Value Locked (TVL) for every blockchain that DefiLlama tracks.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/chains
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-f6135762
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_grDYu5isk7RsoxJIdyCKa

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 blockrun-ai-f6135762
```

Example prompt: Pull the current TVL for every blockchain that DefiLlama tracks and show me which chains have the highest total value locked right now.

## When to prefer this

Use this endpoint when you need a comprehensive snapshot of TVL across all blockchains in a single call, rather than querying individual chains or protocols. Ideal for cross-chain TVL comparison, market share analysis, or monitoring which chains dominate DeFi liquidity. Prefer over protocol-level endpoints when the unit of analysis is the chain rather than a specific protocol.

## Known failure modes

- DefiLlama data unavailable or stale — returns error or empty data object
- Payment not processed (x402) — returns 402 Payment Required
- Network timeout — returns timeout error
- Rate limiting — returns 429 Too Many Requests

## How this service works

TVL by chain — every chain DefiLlama tracks with current TVL totals.

## Output

A list of all blockchains tracked by DefiLlama, each with their current Total Value Locked (TVL) in USD. The response is structured as a data object containing per-chain TVL totals.

## Example request

```json
{
 "input": {
  "body": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "query": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-f6135762/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
