# CortexCloud DeFiLlama Chains API

> CortexCloud DeFiLlama Chains API is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns a list of all blockchain chains tracked by DeFiLlama, including TVL and related on-chain data, accessible via pay-per-call USDC micropayment on Base.

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/defillama/chains
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortexcloud-defillama-chains-api-be1f06b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1QH_eyAyFydhtvTL1GVUW

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 cortexcloud-defillama-chains-api-be1f06b7
```

Example prompt: Give me the full list of all blockchain chains tracked by DeFiLlama, including their TVL data, so I can see how the DeFi ecosystem is distributed across chains.

## When to prefer this

Choose this endpoint when you need a comprehensive, up-to-date list of all blockchain chains tracked by DeFiLlama with TVL data, without managing API keys or subscriptions — especially in agent workflows that pay per call via USDC micropayments on Base using the x402 protocol.

## Known failure modes

- Payment not included or insufficient USDC results in 402 Payment Required response
- DeFiLlama upstream outage may cause 502 or 503 errors
- Malformed request properties parameter returns 400 Bad Request
- Empty response if DeFiLlama data feed is temporarily unavailable

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

A JSON array of blockchain chains tracked by DeFiLlama, each containing chain name, TVL figures, and associated on-chain metadata such as protocol counts and chain identifiers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortexcloud-defillama-chains-api-be1f06b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
