πPoints Program with Leaderboard
Prerequisites
Step 1: Install and initialize
npm install @fuul/sdkimport { Fuul } from '@fuul/sdk';
Fuul.init({ apiKey: 'your-send-tracking-event-key' });Step 2: Track users
// On every page load
await Fuul.sendPageview();
// On wallet connect
await Fuul.identifyUser({
identifier: address,
identifierType: 'evm_address',
signature,
message: 'Sign to verify your identity',
});Step 3: Send custom events from your backend
Step 4: Display the points leaderboard
Step 5: Show a user's points
Step 6: Show points history
Next steps
Feature
Guide
Last updated