# SperaxOS DeFiLlama Get Chain TVL

> SperaxOS DeFiLlama Get Chain TVL is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches the Total Value Locked (TVL) for a specific blockchain chain using DeFiLlama data, payable via x402 micropayment protocol.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/defillama/getChainTvl?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-defillama-get-chain-tvl-11170a5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WJpcCh57Ebtf9YEmr9Md

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 speraxos-defillama-get-chain-tvl-11170a5f -d '<json body>'
```

Example prompt: What's the current total value locked on the Ethereum chain? Use the DeFiLlama chain TVL tool to pull the latest number.

## When to prefer this

Prefer this endpoint when you need real-time or near-real-time TVL data for a specific blockchain chain without managing API keys, and are comfortable with x402 micropayments in USDC on Base. It is ideal for AI agents operating in DeFi analytics workflows that need trustless, pay-per-use data access. Choose over direct DeFiLlama API access when operating in an x402-native payment context or when API key management is not feasible.

## Known failure modes

- Invalid or unrecognized chain name returns an error or empty result
- Payment failure via x402 protocol if insufficient USDC balance on Base
- Rate limiting or service unavailability from the underlying DeFiLlama API
- Stale data if DeFiLlama indexing is delayed
- Network timeout if the upstream DeFiLlama data source is slow to respond

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns the current Total Value Locked (TVL) figure for the queried blockchain chain, sourced from DeFiLlama's aggregated DeFi protocol data. The response typically includes TVL in USD and may include historical snapshots or time-series data depending on the endpoint implementation.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-defillama-get-chain-tvl-11170a5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
