# Pyfile Toolkit – DeFi Protocol TVL Lookup

> Pyfile Toolkit – DeFi Protocol TVL Lookup is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net:10000, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

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

## Facts

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

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 pyfile-toolkit-defi-protocol-tvl-lookup-d4577411
```

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

## When to prefer this

Use this endpoint when you need quick, structured on-chain TVL data for a specific DeFi protocol, including cross-chain breakdown and recent trend data. Prefer it over general web searches when you need machine-readable numeric TVL figures with 1d/7d deltas for analysis or monitoring workflows.

## Known failure modes

- Unknown or misspelled protocol name returns an error or empty result
- Protocol not indexed by the underlying data source returns no data
- Missing 'protocol' query parameter may return a default or error response
- Network timeout if upstream DeFi data provider is slow

## How this service works

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

## Output

Returns a JSON object for the specified DeFi protocol containing its current TVL (in USD), the list of blockchains it operates on, and the percentage or absolute change in TVL 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/pyfile-toolkit-defi-protocol-tvl-lookup-d4577411/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
