# DeFi Data — DefiLlama — chains

Get Blockrun DeFi Data — DefiLlama — chains data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, configure supported query parameters and filters, and retrieve structured data including name, chain identifier, returned cmc id field, returned gecko id field, and returned token symbol field for market reference and account inspection, and integration reference.

Documentation: https://openany.si/blockrun/blockrun-defi-data-defillama-chains/e63bbb8a-9d56-45da-a608-a490d9741e49/
API ID: e63bbb8a-9d56-45da-a608-a490d9741e49
Provider: blockrun
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/v1/defillama/chains
Page update time: 2026-12-03T02:49:51.585Z
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.005 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:50.681Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "5000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockrun DeFi Data — DefiLlama — chains API

Retrieve deFi Data DefiLlama chains with the BlockRun API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Market reference and account inspection**: Keep market, asset and account identities distinct when interpreting records.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].name` | Name |
| `[].chainId` | Chain identifier |
| `[].cmcId` | Returned cmc id field |
| `[].gasTokenGeckoId` | Returned gas token gecko id field |
| `[].gecko_id` | Returned gecko id field |
| `[].tokenSymbol` | Returned token symbol field |
| `[].tvl` | Returned tvl field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DeFi Data — DefiLlama — 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": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "gasTokenGeckoId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "gecko_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "name": {
        "type": "string"
      },
      "tokenSymbol": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "tvl": {
        "type": "number"
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockrun/v1/defillama/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": 1284,
    "cmcId": "6836",
    "gasTokenGeckoId": "moonbeam",
    "gecko_id": "moonbeam",
    "name": "Moonbeam",
    "tokenSymbol": "GLMR",
    "tvl": 0
  },
  {
    "chainId": 5000,
    "cmcId": "27075",
    "gasTokenGeckoId": "mantle",
    "gecko_id": "mantle",
    "name": "Mantle",
    "tokenSymbol": "MNT",
    "tvl": 112728552.71866779
  },
  {
    "chainId": 21000000,
    "cmcId": "36164",
    "gasTokenGeckoId": "bitcorn-3",
    "gecko_id": "corn-3",
    "name": "Corn",
    "tokenSymbol": "CORN",
    "tvl": 0
  },
  {
    "chainId": 5042,
    "cmcId": null,
    "gasTokenGeckoId": null,
    "gecko_id": null,
    "name": "Arc",
    "tokenSymbol": null,
    "tvl": 587678624.8307378
  },
  {
    "chainId": 1666600000,
    "cmcId": "3945",
    "gasTokenGeckoId": "harmony",
    "gecko_id": "harmony",
    "name": "Harmony",
    "tokenSymbol": "ONE",
    "tvl": 0
  }
]
```

## 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 implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- blockrun: https://openany.si/blockrun/blockrun-defi-data-defillama-chains/e63bbb8a-9d56-45da-a608-a490d9741e49/

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