# 2s.io Chain TVL History

> 2s.io Chain TVL History is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-14).

Returns a historical daily time series of total DeFi TVL (in USD) for a specified blockchain, sourced from DefiLlama

## Facts

- Endpoint: GET https://2s.io/api/crypto/chain-tvl-history
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-chain-tvl-history-63a50c83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GbbPYsccqEDEGbroT4nvt

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 2s-io-chain-tvl-history-63a50c83
```

Example prompt: Can you pull the last 180 days of daily DeFi TVL history for Ethereum so I can see how total value locked has trended over time?

## When to prefer this

Use this endpoint when you need historical daily TVL data for a specific blockchain to power charts, trend analysis, or comparisons over time. Prefer this over a current cross-chain leaderboard endpoint (e.g. crypto.defi-chains) when the goal is longitudinal analysis rather than a snapshot. Ideal for visualizing DeFi capital growth or decline on chains like Ethereum, Solana, Arbitrum, Base, and others supported by DefiLlama.

## Known failure modes

- Invalid or unrecognized chain name returns an error or empty dataset
- limit parameter outside 1–1000 range is rejected
- Network or upstream DefiLlama outage may return 5xx error
- Missing required 'chain' parameter returns a validation error
- Payment failure (x402) if USDC not provided correctly

## How this service works

Historical total DeFi TVL time series for a blockchain (e.g. Ethereum, Solana, Arbitrum), via DefiLlama (free/keyless). Returns daily { date, tvlUsd } points (most recent N, default 90). For charting a chain's DeFi capital over time. Pair with crypto.defi-chains for the current cross-chain leaderboard.

## Output

An array of daily data points, each containing a date and the total DeFi TVL in USD for the specified blockchain, ordered chronologically — up to the most recent N days requested (default 90).

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "maxLength": 40,
       "minLength": 1,
       "description": "Chain name, e.g. Ethereum, Solana, Arbitrum, Base."
      },
      "limit": {
       "type": "integer",
       "maximum": 1000,
       "minimum": 1,
       "description": "Most-recent N daily points (default 90)."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-chain-tvl-history-63a50c83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
