# TBS Crypto & DeFi API – DeFi TVL Lookup

> TBS Crypto & DeFi API – DeFi TVL Lookup is a paid API for AI agents from x402.tbs-digital.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns current USD total value locked (TVL) for a specific DeFi protocol, a specific chain, or the top 20 chains ranked by TVL, sourced from DefiLlama.

## Facts

- Endpoint: GET https://x402.tbs-digital.com/defi/tvl?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tbs-crypto-defi-api-defi-tvl-lookup-6134f3d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ffJNbggzde8ii4grBgy73

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 tbs-crypto-defi-api-defi-tvl-lookup-6134f3d1
```

Example prompt: What's the current TVL of Aave right now? Pull it from DefiLlama so I have the latest on-chain liquidity figure.

## When to prefer this

Choose this endpoint when you need current on-chain DeFi TVL data for protocols or chains, sourced from DefiLlama. It is ideal for DeFi health monitoring, liquidity analysis, protocol comparison, or ecosystem-level chain ranking. Prefer it over general crypto price endpoints when the question is about locked liquidity rather than spot price or market cap.

## Known failure modes

- Unknown protocol slug returns null or empty protocol object
- Unknown or misspelled chain name returns null chain result
- DefiLlama upstream outage may cause stale or unavailable data
- Missing query params defaults to top 20 chains — may be unexpected if user intended a specific lookup
- Payment failure (402) if USDC balance is insufficient

## How this service works

DeFi TVL (total value locked) for AI agents. Query a single protocol by slug (aave, uniswap, lido) for its current USD TVL, a specific chain by name, or omit both for the top 20 chains ranked by TVL. Sourced from DefiLlama — on-chain liquidity and DeFi health signal in USD.

## Output

Returns a JSON object containing the current USD TVL for the requested protocol (e.g. {protocol: {slug, tvl, chains}}), the requested chain (e.g. {chain: {name, tvl}}), or an array of the top 20 chains ranked by TVL (top_chains), along with metadata including a request ID, data source attribution (DefiLlama), and a generated_at timestamp.

## 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",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain name, e.g. Ethereum (optional)"
      },
      "protocol": {
       "type": "string",
       "description": "DefiLlama protocol slug, e.g. aave (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "object",
       "nullable": true
      },
      "payer": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string",
         "nullable": true
        },
        "network": {
         "type": "string"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "protocol": {
       "type": "object",
       "nullable": true
      },
      "request_id": {
       "type": "string"
      },
      "top_chains": {
       "type": "array"
      },
      "generated_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tbs-crypto-defi-api-defi-tvl-lookup-6134f3d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tbs-digital.com](https://www.zero.xyz/host/x402.tbs-digital.com/llms.txt)
