# Heurist Mesh: DeFi Llama Chain Metrics

> Heurist Mesh: DeFi Llama Chain Metrics is a paid API for AI agents from mesh.heurist.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns blockchain-level DeFi metrics including TVL, fees, top protocols by fees, and growth trends for a specified chain.

## Facts

- Endpoint: POST https://mesh.heurist.xyz/x402/agents/DefiLlamaAgent/get_chain_metrics
- 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/heurist-mesh-defi-llama-chain-metrics-cba5dd5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ODJ-iioSL6VnZkRRiu40Q

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 heurist-mesh-defi-llama-chain-metrics-cba5dd5a -d '<json body>'
```

Example prompt: What are the current DeFi metrics for Ethereum — TVL, fees, top protocols by fees, and recent growth trends?

## When to prefer this

Use this endpoint when you need aggregated, chain-level DeFi metrics (TVL, fees, protocol rankings) sourced from DefiLlama data. Prefer this over general web search when you need structured, quantitative DeFi analytics for a specific blockchain rather than narrative news or price data.

## Known failure modes

- Unsupported or misspelled chain name returns empty or error response
- Chain with minimal DeFi activity may return sparse metrics
- DefiLlama data lag may mean metrics are slightly delayed
- Network timeout if DefiLlama upstream is slow
- Invalid request format returns 400-level error

## How this service works

Get metrics for a blockchain including TVL, fees, top protocols by fees, and growth trends.

## Output

Returns a structured breakdown of a blockchain's DeFi health including total value locked (TVL), total fees generated, a ranked list of top protocols by fees, and growth trend data over recent time periods.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/heurist-mesh-defi-llama-chain-metrics-cba5dd5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mesh.heurist.xyz](https://www.zero.xyz/host/mesh.heurist.xyz/llms.txt)
