# DeFi Chain TVL Rankings (Top 30)

> DeFi Chain TVL Rankings (Top 30) is a paid API for AI agents from opportunity-api-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the top 30 blockchains ranked by DeFi total value locked (TVL) in USD, sourced from DeFiLlama, including chain name, TVL, and native token symbol.

## Facts

- Endpoint: GET https://opportunity-api-production.up.railway.app/api/chains
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-chain-tvl-rankings-top-30-dcbbbdff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MbveVJK9U_h2RC_3-nlov

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-rankings-top-30-dcbbbdff
```

Example prompt: Can you show me the top blockchains ranked by DeFi TVL right now — I want to see which chains have the most value locked and what their native tokens are?

## When to prefer this

Use this endpoint when you need a quick, pre-ranked snapshot of the top 30 blockchains by DeFi TVL without needing to query DeFiLlama directly. Ideal for comparing chain-level DeFi dominance, building ecosystem dashboards, or deciding which chain to focus DeFi research on. Prefer over protocol-level TVL endpoints when the question is about chain ecosystems rather than individual protocols.

## Known failure modes

- DeFiLlama upstream unavailable — returns 502 or empty response
- Stale TVL data if DeFiLlama cache is not refreshed
- Payment not processed correctly — returns 402 Payment Required
- Network timeout if Railway hosting is under load

## How this service works

Top 30 blockchains ranked by DeFi TVL (DeFiLlama). Name, TVL in USD, native token symbol.

## Output

A list of up to 30 blockchain entries, each containing the chain name, its total DeFi TVL denominated in USD, and the native token symbol — ranked descending by TVL as sourced from DeFiLlama.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-chain-tvl-rankings-top-30-dcbbbdff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opportunity-api-production.up.railway.app](https://www.zero.xyz/host/opportunity-api-production.up.railway.app/llms.txt)
