81trust / 100
Defi Fees
by DeFi protocol fees and revenue in Onchain & crypto
x402 APIPassing, checked 2 h ago
Protocols ranked by fees paid by users or by revenue kept, with 24h, 7d, 30d, 1y and all-time totals, change, category and chains, and chain-level gas fees on request. Use it when an agent is comparing protocols on real usage rather than TVL or valuing a token against the fees its protocol earns.
POST https://agent402.tools/api/defi-fees
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 191 ms typical, 191 ms slowest 5%
- Last check
- 2 h 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-fees" \
-H "content-type: application/json" \
-d '{"limit":5,"metric":"fees"}'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-fees
const res = await pay("https://agent402.tools/api/defi-fees", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"limit":5,"metric":"fees"}),
});
console.log(await res.json());Example input
{
"limit": 5,
"metric": "fees"
}Example output
{
"cached": true,
"chain": null,
"chains": [
"Solana",
"Ethereum",
"Base"
],
"count": 1,
"fetchedAt": "2026-08-22T12:00:00.000Z",
"matched": 2500,
"metric": "fees",
"protocols": [
{
"category": "Stablecoin Issuer",
"chainCount": 1,
"chains": [
"Ethereum"
],
"change1dPct": 0,
"change1mPct": 1.2,
"change7dPct": -0.03,
"name": "Tether",
"protocolType": "protocol",
"rank": 1,
"slug": "tether",
"total1yUsd": 5800000000,
"total24hUsd": 15900806,
"total30dUsd": 481404902,
"total7dUsd": 111368600,
"totalAllTimeUsd": 20000000000
}
],
"source": "defillama-fees",
"totals": {
"change1dPct": 6.68,
"change1mPct": 10.2,
"change7dPct": 2.1,
"total24hUsd": 75393517,
"total30dUsd": 1800000000,
"total7dUsd": 423480844
},
"unit": "USD"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 330 ms | $0.002 |
| 8 h ago | Passed | 402 | 191 ms | $0.002 |