πŸͺ™Tokens

Retrieve onchain token rewards for individual users.

Rewards for a specific user

Use getPayoutsLeaderboard filtered by user_identifier to get an individual user's token rewards:

import { Fuul } from '@fuul/sdk';

await Fuul.getPayoutsLeaderboard({
  currency_address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
  user_identifier: '0x1234...',
  identifier_type: 'evm_address',
  from: '2024-01-01',                    // Optional
  to: '2024-12-31',                      // Optional
  user_type: 'affiliate',                // Optional: 'affiliate' | 'end_user'
  conversion_external_ids: [1, 2, 3],    // Optional: filter by conversion IDs
});

Example response:

{
  "total_results": 1,
  "page": 1,
  "page_size": 10,
  "results": [
    {
      "address": "0x1234...",
      "total_amount": 200,
      "rank": 1,
      "total_attributions": 10
    }
  ]
}
circle-info

total_amount is already formatted with the token's decimals.

Add extra fields like tier and volume:

Payouts grouped by conversion

Payout history (movements)

Last updated