This article shows how to get point individual rewards
Projects can decide to show a leaderboard or a user profile on their own website.
Rewards data is not updated in real time due to performance considerations. Recent conversions and payouts will appear on the leaderboard within a maximum of one hour.
Points for a specific address
To get the points rewards for your project use the getPointsLeaderboard method filtered by user address.
import { Fuul } from ('@fuul/sdk');
await Fuul.({ user_address: '0x12345' });
await Fuul.getPointsLeaderboard({
user_address: '0x12345' ,
from: new Date('2021-01-01'), // Optional
to: new Date('2022-01-01'), // Optional
user_type: 'all', // all, affiliate or end_user
conversions: '1,2,3' // Optional
});
A simple response for retrieving this information would be the following:
import { Fuul } from ('@fuul/sdk');
await Fuul.getUserPointsByConversion({
user_address: '0x12345',
from: new Date('2021-01-01'),
to: new Date('2022-01-01'),
});
A simple response for retrieving this information would be the following: