# Mangrove DeFi Chain TVL Lookup

> Mangrove DeFi Chain TVL Lookup is a paid API for AI agents from api.mangrovedeveloper.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-04).

Returns the total value locked (TVL) in USD for a specified blockchain, along with top protocols by TVL, sourced from DeFiLlama.

## Facts

- Endpoint: GET https://api.mangrovedeveloper.ai/api/v1/defi/chain/%7Bchain%7D/tvl?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mangrove-defi-chain-tvl-lookup-1ab8f3bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zoq5_pO5dN-Ve7l-Nzyi5

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 mangrove-defi-chain-tvl-lookup-1ab8f3bc
```

Example prompt: What's the current total value locked on Base, and which protocols are leading by TVL?

## When to prefer this

Use this endpoint when you need on-chain TVL data for a specific blockchain, especially when you also want a breakdown of top protocols. Prefer this over manually querying DeFiLlama directly when you need a simple, pay-per-call API compatible with x402 payment flows in an agent context.

## Known failure modes

- Unsupported or misspelled chain name returns an error or found:false
- Chain with no indexed data may return TVL of 0 or empty protocol list
- DeFiLlama upstream outage may cause stale or unavailable data
- Malformed chain path parameter returns a 400 or 404 error

## How this service works

Developer references for Mangrove Agent, API contracts, MCP and AI integrations.

## Output

A JSON object containing the chain name, total TVL in USD, a boolean success flag, the data provider (DeFiLlama), and a list of top protocols with their individual TVL values and categories (e.g. Lending, CEX, DEX).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "chain": "Base",
   "found": true,
   "tvl_usd": 6137363525
  },
  "chain": "Base",
  "success": true,
  "tvl_usd": 6137363525,
  "provider": "defillama",
  "top_protocols": [
   {
    "tvl": 172625913137,
    "name": "Binance CEX",
    "category": "CEX"
   },
   {
    "tvl": 30743144868,
    "name": "OKX",
    "category": "CEX"
   },
   {
    "tvl": 16875767295,
    "name": "Aave V3",
    "category": "Lending"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-defi-chain-tvl-lookup-1ab8f3bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mangrovedeveloper.ai](https://www.zero.xyz/host/api.mangrovedeveloper.ai/llms.txt)
