# BlockRun DeFiLlama Protocol TVL Lookup

> BlockRun DeFiLlama Protocol TVL Lookup is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-15).

Returns detailed Total Value Locked (TVL) and chain/token breakdown for a single DeFi protocol by its DeFiLlama slug.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/defillama/protocol/curve-dex
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-defillama-protocol-tvl-lookup-250fb7d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WbQojdMstC4MacwS7gJLT

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-defillama-protocol-tvl-lookup-250fb7d0
```

Example prompt: What's the current TVL and chain breakdown for Curve DEX on DeFiLlama?

## When to prefer this

Use this endpoint when you need detailed TVL data and chain/token breakdown for a specific DeFi protocol by its DeFiLlama slug. Prefer this over generic crypto price APIs when the goal is protocol-level liquidity analysis rather than token price. Best for DeFi research, competitive analysis, or monitoring protocol health.

## Known failure modes

- Invalid or unknown protocol slug returns 404 or empty data
- DeFiLlama upstream outage causes data unavailability
- Misspelled slug (e.g. 'curve' instead of 'curve-dex') returns wrong or no protocol
- Payment of $0.007 USDC not settled causes 402 rejection
- Rate limiting if called too frequently without payment

## How this service works

Detailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).

## Output

Returns a structured JSON object containing the protocol's total TVL, broken down by chain and token, along with protocol metadata such as name, description, category, and historical TVL time series data — sourced from DeFiLlama.

## 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-defillama-protocol-tvl-lookup-250fb7d0/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)
