🔈Volume
Retrieve the volume leaderboard using the getVolumeLeaderboard method. This shows transaction volume generated by users.
import { Fuul } from '@fuul/sdk';
await Fuul.getVolumeLeaderboard({
user_type: 'affiliate',
});Example response:
{
"total_results": 89,
"page": 1,
"page_size": 10,
"results": [
{
"address": "0x1234...",
"total_amount": "1250000.00",
"rank": 1
}
]
}getVolumeLeaderboard calls GET /v1/payouts/leaderboard/volume.
Volume vs revenue
Volume and revenue are two separate leaderboards backed by two separate endpoints. Don't mix them up:
SDK method
Endpoint
Ranks by
getVolumeLeaderboard
GET /v1/payouts/leaderboard/volume
Transaction volume generated (USD)
getRevenueLeaderboard
GET /v1/payouts/leaderboard/revenue
Revenue generated, e.g. fees (API reference)
getRevenueLeaderboard takes the same shape of filters, including user_identifier, identifier_type, and user_type.
Last updated