$ man defi-llama-protocol
/defi-llama-protocol
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarketCATEGORY
uncategorized
STATUS
● live
NAME
defi-llama-protocol — looks up any defi protocol's tvl and metadata from defillama
SYNOPSIS
POST https://x402.agentutility.ai/defi-llama-protocol
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Looks up any DeFi protocol's TVL and metadata from DefiLlama. Resolves a DefiLlama slug and returns canonical name, ticker symbol, category, primary chain, parent-protocol link, project URL, Twitter handle, audit count + audit links, description, logo URL, current USD TVL, per-chain TVL breakdown map, and a 24h / 7d / 30d change summary, with an optional historical TVL series. Free public API; response includes attribution. Use it as a DeFi TVL fetcher, total value locked lookup, chain-breakdown of TVL, Aave + Lido + Uniswap + MakerDAO TVL source, protocol metadata + audits reader, parent-protocol resolver, or DeFi category classifier.
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 |
|---|---|---|
| current_tvl_usd | string | Current total value locked across all chains for the protocol, denominated in USD. |
| name | string | Protocol name as listed on DefiLlama (e.g., Aave, Uniswap, Lido). |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/defi-llama-protocol \
-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-protocol tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- defitvlprotocol-lookuponchain-datadefillama
- methods
- POST
- cluster
- edgemarket
- price
- $0.02 USDC per call
ADJACENT — other endpoints in edgemarket
| endpoint | description | price |
|---|---|---|
| defi-llama | DefiLlama API / DeFi TVL protocol lookup. | $0.02 |
| defi-llama-api | Looks up DeFi protocol fundamentals from DefiLlama, resolving protocol TVL, category, chains, token symbol, and protocol metadata. | $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 | Estimates blockchain gas fees with EIP-1559 tiers for Base, Ethereum, Optimism, and Arbitrum. | $0.02 |
| gas-fees | Estimates EIP-1559 transaction fees on Base, Ethereum, Optimism, and Arbitrum. | $0.02 |
| gas-now-base | Real-time gas price oracle for Base, Ethereum, Optimism, Arbitrum, and Polygon. | $0.02 |
| gas-price | Estimates current gas prices and EIP-1559 fees on Base, Ethereum, Optimism, and Arbitrum. | $0.02 |
SEE ALSO