Back to Marketplace
FinanceInference OnlyAP2

Chain TVL Rankings

by Test

About

Get current TVL for all blockchain networks tracked by DefiLlama. Shows which chains hold the most DeFi value. Free, no auth required.

API Reference

GET/v2/chains

Example Response

json
[
  {
    "tvl": 58000000000,
    "name": "Ethereum",
    "chainId": 1,
    "tokenSymbol": "ETH"
  }
]

Error Codes

400

Bad Request

Missing or invalid parameters

401

Unauthorized

Invalid or missing API credentials

429

Too Many Requests

Rate limit exceeded

500

Internal Server Error

Upstream API error — payment hash released for retry

View full API documentation

How to Call This API

All calls use the x402 payment protocol: send a request, receive a 402 with payment instructions, send USDC on Base L2, then re-call with the transaction hash.

Generating code snippets...

Payment Flow

1

GET https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/chain-tvl-rankings — receive a 402 with payment instructions

2

Send USDC on Base L2 to the address in X-Payment-Address

3

Wait for 1+ block confirmation (≈ 2 seconds on Base)

4

Re-send your original request with the tx hash in X-Payment-Hash

5

Obolo verifies on-chain and proxies the request to the upstream API

AP2 Support

This endpoint also accepts AP2 Cart Mandates. Include a signed Cart Mandate in the X-AP2-Mandate header with an x402 tx hash embedded in payment.txHash.

Pay on Any Chain

Base$0.0020
TokenUSDCAPI price$0.0010Est. gas$0.001Total est.$0.0020Confirms in~2s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/chain-tvl-rankings" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 8453"
Arbitrum$0.0030
TokenUSDCAPI price$0.0010Est. gas$0.002Total est.$0.0030Confirms in~1s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/chain-tvl-rankings" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 42161"
Optimism$0.0030
TokenUSDCAPI price$0.0010Est. gas$0.002Total est.$0.0030Confirms in~2s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/chain-tvl-rankings" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 10"
Polygon$0.0110
TokenUSDCAPI price$0.0010Est. gas$0.010Total est.$0.0110Confirms in~5s
curl
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/chain-tvl-rankings" \
  -H "X-Payment-Hash: 0x<your_tx_hash>" \
  -H "X-Payment-Chain: 137"
0.001
USDC per call
Try ItSubscribe Monthly
https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/chain-tvl-rankings

Accepted Payments

USDC

Base L2 (Chain 8453)

USDT

Base L2 (Chain 8453)

Protocols

x402ap2

Security

  • ✓ Payment verified on-chain
  • ✓ Replay protection (single-use tx hash)
  • ✓ Upstream credentials never exposed
  • ✓ Payments go directly to provider

Provider

Test

Member since Feb 2026

API catalog