# SperaxOS DeFiLlama Protocol TVL API

> SperaxOS DeFiLlama Protocol TVL API 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-02).

Fetches the current Total Value Locked (TVL) for a specified DeFi protocol using its DefiLlama slug, payable via x402 USDC micropayment.

## Facts

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

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-protocol-tvl-api-ba9abc60 -d '<json body>'
```

Example prompt: What's the current TVL for Aave? Look it up from DefiLlama using the protocol slug 'aave'.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use TVL lookup for a specific DeFi protocol by DefiLlama slug without needing an API key. Ideal for AI agents that need real-time DeFi intelligence on demand, particularly when operating with a crypto wallet capable of x402 USDC micropayments on Base. Prefer this over direct DefiLlama API calls when you need a managed, agent-friendly interface with no key management overhead.

## Known failure modes

- Invalid or unrecognized protocol slug returns an error or empty result
- Protocol not indexed by DefiLlama returns no data
- Payment failure via x402 (insufficient USDC balance or misconfigured wallet) blocks the request
- Network timeout or upstream DefiLlama API unavailability causes a failed response

## 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 specified DeFi protocol, sourced from DefiLlama. Typically includes aggregate TVL value in USD and may include chain-level breakdowns depending on the protocol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "protocolSlug": {
   "type": "string",
   "description": "DefiLlama protocol slug (e.g. \"aave\", \"lido\", \"uniswap\", \"maker\")."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-defillama-protocol-tvl-api-ba9abc60/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)
