Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man defi-tvl

/defi-tvl

PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
defi-tvl defi tvl api / total value locked by protocol
synonym alias of defi-llama-protocol — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/defi-tvl
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

DeFi TVL API / total value locked by protocol. Looks up one DefiLlama protocol slug and returns current USD TVL, chain TVL breakdown, TVL changes, protocol metadata, and attribution.

INPUTrequest schema
propertytypedescriptionreq?
protocolstringDefiLlama slug (lowercase, hyphenated). Examples: 'aave', 'lido', 'uniswap', 'makerdao', 'curve-dex'. See defillama.com/protocols for the canonical slug list.required
include_tvl_seriesbooleanIf true, attach the full historical TVL time-series under tvl_summary.series. Adds significant payload size. Default false.optional
OUTPUTresponse shape
fieldtypedescription
protocol_slugstring
namestring
symbolstring
categorystring
chainstring
parent_protocolstring
urlstring
twitterstring
auditsstring
audit_linksstring
descriptionstring
logostring
current_tvl_usdstring
chain_tvl_breakdownstring
tvl_summarystring
attributionstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/defi-tvl \
  -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-tvl tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-marketdefitvldefi-tvl
methods
POST
cluster
edgemarket
price
$0.02 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
coin-priceCoin price API / crypto spot price / BTC ETH SOL quote lookup.$0.02
crypto-priceCrypto price lookup / coin price API / BTC ETH SOL price / on-chain token spot price.$0.02
defi-llamaDefiLlama API / DeFi TVL protocol lookup.$0.02
defi-llama-protocolDefiLlama protocol lookup / DeFi TVL fetcher / total value locked / chain-breakdown of TVL / Aave + Lido + Uniswap + MakerDAO TVL / proto…$0.02
defillamaDefiLlama protocol TVL lookup / DeFi protocol metadata.$0.02
gas-apiGas API / blockchain gas fee estimator / EIP-1559 fee tiers.$0.02
gas-feesGas fees API / EIP-1559 transaction fee estimator / Base Ethereum Optimism Arbitrum gas tracker.$0.02
gas-now-baseGas oracle / gas price API / EIP-1559 fee estimator / Base + Ethereum + Optimism + Arbitrum + Polygon gas tracker / etherscan-gas alterna…$0.02
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org