Skip to content
Fourohtwo

Top L2s by Total Value Locked (TVL) from an open DeFi analytics API

agent402.tools/api/l2-tvl

Top L2s by Total Value Locked (TVL) from an open DeFi analytics API. Returns each L2 with TVL in USD, native token symbol, and market-data coin ids. Classification combines the source's parent-chain hint with a curated list of well-known L2s (Arbitrum, Optimism, Base, zkSync Era, Linea, Scroll, Mantle, Polygon zkEVM, Starknet, Blast, Mode, Manta, Metis, Polygon, Taiko, Immutable zkEVM, World Chain

SolanaBaseUnchecked
POSThttps://agent402.tools/api/l2-tvl

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent402.tools/api/l2-tvl", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":10}),
});
console.log(await res.json());

Example input

{
  "limit": 10
}