⛓️Tokens
Retrieve the onchain token payouts leaderboard using the getPayoutsLeaderboard method.
import { Fuul } from '@fuul/sdk';
await Fuul.getPayoutsLeaderboard({
currency_address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
user_type: 'affiliate',
});Example response:
{
"total_results": 156,
"page": 1,
"page_size": 10,
"results": [
{
"address": "0x1234...",
"total_amount": 5200.50,
"rank": 1,
"total_attributions": 48
},
{
"address": "0x5678...",
"total_amount": 3100.25,
"rank": 2,
"total_attributions": 31
}
]
}Parameter
Required
Description
currency_address
Yes
Token contract address on the payout chain
user_type
No
'affiliate' or 'end_user'
fields
No
Extra fields: 'tier,referred_volume,enduser_volume,enduser_revenue'
With extra fields
For full endpoint details, see the API reference.
Last updated