# DefiLlama — Get current TVL of all chains

Get DefiLlama All Chains TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including blockchain name and slug, gecko id, and cmc id to rank blockchain ecosystems, resolve chain slugs, and cross-reference asset metadata.

Documentation: https://openany.si/defillama/defillama-get-current-tvl-of-all-chains/7ce75e94-c2b3-4c39-9ed8-a7fdb2771ef5/
API ID: 7ce75e94-c2b3-4c39-9ed8-a7fdb2771ef5
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/v2/chains
Page update time: 2026-12-03T02:55:15.130Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:14.732Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## DefiLlama All Chains TVL API

Send a parameter-free GET request to list every tracked blockchain alongside its current TVL and cross-platform reference IDs. Use returned chain names as slugs for historical chain TVL queries.

## What You Can Build

- **Rank blockchain ecosystems**: Sort all chains by current TVL for market share tables and DeFi landscape reports.
- **Resolve chain slugs**: Fetch canonical chain names before calling chain-scoped TVL or DEX volume endpoints.
- **Cross-reference asset metadata**: Map chainId, gecko\_id and cmcId to external market data feeds.

## Returned Data

| Field | Meaning |
| --- | --- |
| `[]` | Array of blockchain TVL summary objects |
| `[].name` | Blockchain name and slug |
| `[].tvl` | Current total value locked in USD |
| `[].tokenSymbol` | Native gas or ecosystem token symbol |
| `[].chainId` | Numeric chain ID where applicable |
| `[].gecko_id` | CoinGecko identifier for the chain native asset |
| `[].cmcId` | CoinMarketCap identifier for the chain native asset |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DefiLlama — Get current TVL of all chains request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "chainId": {
        "type": "integer"
      },
      "cmcId": {
        "type": "string"
      },
      "gecko_id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "tokenSymbol": {
        "type": "string"
      },
      "tvl": {
        "type": "number"
      }
    }
  }
}
```

## Request example
Scenario: Official UI example (not runtime verified)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/defillama/v2/chains' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "chainId": 1,
    "cmcId": "1027",
    "gecko_id": "ethereum",
    "name": "Ethereum",
    "tokenSymbol": "ETH",
    "tvl": 65998652431.40251
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this endpoint accept any query parameters?
No. The live contract defines no path, query or body inputs.

### What currency is used for the tvl field?
TVL values are reported in USD.

### How do I get historical TVL for a specific chain?
Pass a chain name from this response to the DefiLlama Chain Historical TVL API.

### Are non-EVM chains included in the list?
Yes. Non-EVM chains appear in the array, though numeric chainId may be null or omitted for chains without an EVM chain ID.

### Does this endpoint break down TVL by individual protocols?
No. Use the DefiLlama All Protocols TVL API to inspect per-protocol TVL and chain breakdowns.

### How can I combine this with stablecoin supply per chain?
Join records by chain name with the DefiLlama Stablecoin Chains API.

## Available implementations
- defillama: https://openany.si/defillama/defillama-get-current-tvl-of-all-chains/7ce75e94-c2b3-4c39-9ed8-a7fdb2771ef5/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
