81trust / 100
Defi Protocols
by DeFi protocols ranked by TVL in Onchain & crypto
x402 APIPassing, checked 40 min ago
DeFi protocols ranked by total value locked, filterable by category, chain or name, each with rank, chains, TVL, 1h, 1d and 7d change, market cap and the market cap to TVL ratio. Use it when an agent needs the league table of protocols or wants to find the largest lending, DEX or staking venues on a chain.
POST https://agent402.tools/api/defi-protocols
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 186 ms typical, 186 ms slowest 5%
- Last check
- 40 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/defi-protocols" \
-H "content-type: application/json" \
-d '{"category":"Lending","limit":5}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fdefi-protocols
const res = await pay("https://agent402.tools/api/defi-protocols", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"category":"Lending","limit":5}),
});
console.log(await res.json());Example input
{
"category": "Lending",
"limit": 5
}Example output
{
"cached": true,
"count": 1,
"fetchedAt": "2026-08-22T12:00:00.000Z",
"filters": {
"category": "Lending",
"chain": null,
"includeCex": false,
"minTvlUsd": null,
"search": null
},
"matched": 600,
"protocols": [
{
"category": "Lending",
"chainCount": 21,
"chains": [
"Ethereum",
"Base",
"Arbitrum"
],
"change1dPct": 0.8,
"change1hPct": 0.02,
"change7dPct": 2.4,
"mcapTvl": 0.188,
"mcapUsd": 3200000000,
"name": "Aave V3",
"parentProtocol": "aave",
"rank": 3,
"slug": "aave-v3",
"symbol": "AAVE",
"tvlUsd": 17023522168
}
],
"source": "defillama-protocols",
"totalTvlUsd": 48000000000
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 40 min ago | Passed | 402 | 189 ms | $0.002 |
| 6 h ago | Passed | 402 | 186 ms | $0.002 |