crypto

DeFi total-value-locked (TVL) metrics via DefiLlama.

DeFi total-value-locked (TVL) metrics via DefiLlama. With no params, returns the top protocols by TVL (name, slug, category, TVL, 1-day and 7-day % change, chains) plus total DeFi TVL across all chains. Pass protocol=<slug> (e.g. lido, aave, uniswap) for a single protocol's TVL, category, momentum, and chains; or chain=<name> (e.g. ethereum, solana, arbitrum) for that chain's TVL. Distinct from crypto.markets/token-price (spot prices) — this is protocol- and chain-level capital locked in DeFi, which an agent can't know from training. Free, keyless.

get/api/crypto/defi

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/crypto/defi
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

protocolstring

Protocol slug (e.g. lido, aave, uniswap). Omit for the top-protocols list.

chainstring

Chain name (e.g. ethereum, solana, arbitrum) for that chain's TVL.

limitinteger

Number of protocols in the top list (1–100, default 20).

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.