# DeFi Protocol TVL Lookup via DefiLlama

> DeFi Protocol TVL Lookup via DefiLlama is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns total value locked (TVL) for any DeFi protocol with a per-chain breakdown, powered by DefiLlama data.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/defi-tvl
- 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/defi-protocol-tvl-lookup-via-defillama-233d1ed2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6JZH19QwIVQyd5-E8Ft2K

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-protocol-tvl-lookup-via-defillama-233d1ed2
```

Example prompt: What's the current total value locked for Aave v3 — can you give me the breakdown by chain too?

## When to prefer this

Use this endpoint when you need current TVL data for a specific DeFi protocol identified by its DefiLlama slug, especially when you need the per-chain breakdown. Prefer this over generic DeFi data APIs when you specifically need DefiLlama-sourced TVL metrics for a named protocol.

## Known failure modes

- Unknown or misspelled protocol slug returns an error or empty result
- Protocol not tracked by DefiLlama returns no data
- Network timeout or DefiLlama upstream unavailability
- Payment of 0.005 USDC not provided returns 402 Payment Required

## How this service works

Total value locked for any DeFi protocol with per-chain breakdown via DefiLlama, by protocol slug such as aave-v3 or uniswap. defi tvl, protocol tvl, total value locked, defillama tvl, protocol metrics Accepts payment on Base or Solana — either network works.

## Output

Returns the total value locked (TVL) in USD for the specified DeFi protocol, along with a per-chain breakdown showing how much is locked on each individual blockchain (e.g. Ethereum, Arbitrum, Optimism).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "protocol"
     ],
     "properties": {
      "protocol": {
       "type": "string",
       "description": "Protocol slug, e.g. aave-v3, uniswap, lido (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-tvl-lookup-via-defillama-233d1ed2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
