# DeFi Chain TVL Ranking Lookup

> DeFi Chain TVL Ranking Lookup is a paid API for AI agents from defi.x402utils.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the total value locked (TVL) in USD and TVL rank for a specified blockchain chain in DeFi protocols.

## Facts

- Endpoint: GET https://defi.x402utils.workers.dev/v1/chain?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-chain-tvl-ranking-lookup-c69813f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_koGBISI39KkBqBIuOIYgf

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-chain-tvl-ranking-lookup-c69813f1
```

Example prompt: What is the current total value locked and TVL ranking for the Base chain in DeFi?

## When to prefer this

Use this endpoint when you need quick, per-call TVL data for a specific blockchain chain, including its rank among all chains. It is ideal for agents that need on-demand DeFi market intelligence without a subscription, paying micro-fees per query in USDC via x402. Prefer this over manual DeFi dashboard checks or bulk data pulls when you only need data for one chain at a time.

## Known failure modes

- Unknown or misspelled chain name returns an error or empty result
- Chain with no tracked DeFi protocols may return zero TVL or not found
- Rate limiting or payment failure via x402 if USDC balance is insufficient
- Network timeout from upstream DeFi data provider

## How this service works

DeFi total value locked for agents: TVL of any protocol and TVL ranking of chains. Paid per call via x402 (USDC on Base).

## Output

Returns a JSON object with the chain's name, its TVL rank among all chains, and its total value locked in USD (e.g. {"name":"Base","rank":5,"tvl_usd":4000000000}).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "chain name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Base",
  "rank": 5,
  "tvl_usd": 4000000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-chain-tvl-ranking-lookup-c69813f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi.x402utils.workers.dev](https://www.zero.xyz/host/defi.x402utils.workers.dev/llms.txt)
