# DeFi Protocol TVL & Chain Metrics

> DeFi Protocol TVL & Chain Metrics is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns Total Value Locked (TVL), supported chains, and 1-day/7-day change metrics for a specified DeFi protocol

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net/data/onchain/defi
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-tvl-chain-metrics-b46003f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vFlDNpekdIlzjsmSba8Bv

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 defi-protocol-tvl-chain-metrics-b46003f9
```

Example prompt: What's the current TVL for Aave, which chains is it on, and how has it changed over the last 1 day and 7 days?

## When to prefer this

Use this endpoint when you need quick, structured TVL and chain metrics for a specific DeFi protocol including short-term trend data (1d/7d). Prefer this over general crypto price feeds when the user specifically asks about protocol-level liquidity, TVL, or chain coverage rather than token prices.

## Known failure modes

- Unknown or misspelled protocol slug returns empty or error response
- Protocol not indexed by the data source returns no results
- Missing required 'protocol' query parameter may return an error or default data
- Network timeouts or upstream data source unavailability

## How this service works

DeFi protocol TVL, chains, and 1d/7d change. ?protocol=aave

## Output

Returns structured data for the specified DeFi protocol including current Total Value Locked (TVL) in USD, a list of supported blockchain networks, and percentage or absolute TVL changes over the past 1 day and 7 days.

## 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",
     "properties": {
      "protocol": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-tvl-chain-metrics-b46003f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net/llms.txt)
