# Foundry DeFi TVL Lookup

> Foundry DeFi TVL Lookup is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns total value locked (TVL) in USD for a specific blockchain, DeFi protocol, or the top chains via DefiLlama

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/defi-tvl?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-defi-tvl-lookup-2869d22e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e2bQd2qyJ3Avy0R0tv5cU

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 foundry-defi-tvl-lookup-2869d22e -d '<json body>'
```

Example prompt: What's the current total value locked for Base chain right now? Pull the TVL from DefiLlama.

## When to prefer this

Use this endpoint when you need real-time DeFi TVL data sourced from DefiLlama for a specific chain (e.g. Base, Ethereum, Polygon), a protocol (e.g. Aave, Uniswap, Compound), or want a ranked list of top chains. Prefer this over general web search when you need a structured, numeric TVL figure ready for computation or reporting.

## Known failure modes

- Unknown chain or protocol slug returns an error or null TVL
- DefiLlama upstream API unavailable causes fetch failure
- Misspelled protocol name (e.g. 'aav' instead of 'aave') may return no results
- Very new or obscure protocols may not be tracked by DefiLlama
- Rate limiting or payment failure returns 402 status

## How this service works

DeFi TVL from DefiLlama: total value locked for a chain or protocol, or the top chains. Input: 'Base', 'aave' or 'top'.

## Output

Returns a JSON object containing the chain or protocol name, TVL in USD as a numeric value, the token (if applicable), and the source (DefiLlama). For 'top' input, returns a ranked list of chains with their TVL figures.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "A chain name, a protocol slug, or 'top'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "Base",
  "token": null,
  "source": "DefiLlama",
  "tvl_usd": 5876444563
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-defi-tvl-lookup-2869d22e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
