$ man defi-llama-api
/defi-llama-api
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarketCATEGORY
uncategorized
STATUS
● live
NAME
defi-llama-api — defillama api / defi protocol tvl lookup / protocol fundamentals
synonym alias of defi-llama-protocol — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/defi-llama-api
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
DeFiLlama API / DeFi protocol TVL lookup / protocol fundamentals. Same DefiLlama-backed handler as defi-llama, listed for agents searching exact DefiLlama wording to resolve protocol TVL, category, chains, token symbol, and protocol metadata.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| protocol | string | DefiLlama slug (lowercase, hyphenated). Examples: 'aave', 'lido', 'uniswap', 'makerdao', 'curve-dex'. See defillama.com/protocols for the canonical slug list. | required |
| include_tvl_series | boolean | If true, attach the full historical TVL time-series under tvl_summary.series. Adds significant payload size. Default false. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| protocol | string | — |
| tvl | string | — |
| chains | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/defi-llama-api \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the defi-llama-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- defillamaapidefi-llama-api
- methods
- POST
- cluster
- edgemarket
- price
- $0.02 USDC per call
ADJACENT — other endpoints in edgemarket
| endpoint | description | price |
|---|---|---|
| coin-price | Coin price API / crypto spot price / BTC ETH SOL quote lookup. | $0.02 |
| crypto-price | Crypto price lookup / coin price API / BTC ETH SOL price / on-chain token spot price / contract-address quote API. | $0.02 |
| crypto-token-price | Crypto token price API / token quote lookup / ERC-20 SPL token market data. | $0.02 |
| defi-llama | DefiLlama API / DeFi TVL protocol lookup. | $0.02 |
| defi-llama-protocol | DefiLlama protocol lookup / DeFi TVL fetcher / total value locked / chain-breakdown of TVL / Aave + Lido + Uniswap + MakerDAO TVL / proto… | $0.02 |
| defi-tvl | DeFi TVL API / total value locked by protocol. | $0.02 |
| defillama | DefiLlama protocol TVL lookup / DeFi protocol metadata. | $0.02 |
| gas-api | Gas API / blockchain gas fee estimator / EIP-1559 fee tiers. | $0.02 |
SEE ALSO