A

ApiToll DeFi TVL · Crypto TVL

by ApiToll DeFi TVL

GETBaseSolana

$0.001

per call · USD Coin on Base

DeFi Total Value Locked (TVL) by blockchain or by protocol. Default returns the top chains ranked by TVL in USD; pass ?chain=Ethereum for one chain, or ?protocol=aave-v3 for a protocol's current TVL, 24h and 7d change, category, market cap, and the chains it spans. Track capital flows across DeFi. Sourced from DefiLlama.

Endpoint

GET https://crypto.apitoll.cloud/v1/crypto/tvl

5

Calls / 30d

4

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://crypto.apitoll.cloud/v1/crypto/tvl", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://crypto.apitoll.cloud/v1/crypto/tvl?chain=Ethereum" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "chain": {
    "chainId": 1,
    "name": "Ethereum",
    "tokenSymbol": "ETH",
    "tvlUsd": 38600000000
  },
  "mode": "chain",
  "source": {
    "name": "DefiLlama"
  }
}

Payment details

Pay to0x3da40a9ad36640a2c0f533bac368490095574664
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from ApiToll DeFi TVL & similar services