# DefiLlama Chain TVL History

> DefiLlama Chain TVL History is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the historical total-value-locked (TVL) time series for a single specified blockchain chain from DefiLlama.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/chain-tvl
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-chain-tvl-history-1ec0bba7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nry3eCbNE68pEdl8WGtqQ

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 defillama-chain-tvl-history-1ec0bba7
```

Example prompt: Pull the full historical TVL time series for Arbitrum from DefiLlama so I can see how total value locked has changed over time on that chain.

## When to prefer this

Use this endpoint when you need the full historical TVL time series for a single specific blockchain chain. Prefer this over the all-chains aggregate endpoint when you want to analyze or visualize one chain's DeFi growth in isolation, or when you need per-chain granularity rather than ecosystem-wide totals.

## Known failure modes

- Invalid or unrecognized chain name returns an error or empty result
- Chain name must match DefiLlama's naming convention (e.g. 'Ethereum' not 'ETH') or lookup fails
- Payment failure due to insufficient USDC balance results in 402 response
- Network timeout if DefiLlama upstream is slow or unavailable

## How this service works

Historical DeFi TVL for one chain from DefiLlama — total-value-locked time series for a single chain.

## Output

A time series array of TVL data points for the specified chain, each containing a timestamp and the total USD value locked in DeFi protocols on that chain at that point in time.

## 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": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "pattern": "^[^/?#]+$",
       "maxLength": 100,
       "minLength": 1,
       "description": "Chain name (e.g. Ethereum, Arbitrum, Solana); case preserved, no slashes or query characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "tvl": {
          "type": "number",
          "description": "Total value locked in USD on that date"
         },
         "date": {
          "type": "integer",
          "description": "Unix timestamp (seconds) of this data point"
         }
        }
       }
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "When this bridge fetched the upstream data"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "tvl": 123000000000,
    "date": 1700000000
   }
  ],
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-chain-tvl-history-1ec0bba7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
