For the complete documentation index, see llms.txt. This page is also available as Markdown.

🔈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',
});

user_type is optional. Use 'affiliate' for referred volume or 'end_user' for direct user volume.

Example response:

{
  "total_results": 89,
  "page": 1,
  "page_size": 10,
  "results": [
    {
      "address": "0x1234...",
      "total_amount": "1250000.00",
      "rank": 1
    }
  ]
}

Volume values are returned in USD.

Leaderboard responses are paginated. Use page and page_size (max 100 per page) to retrieve the full leaderboard.

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