🌟Points
Retrieve point rewards for individual users.
Points for a specific user
Use getPointsLeaderboard filtered by user_identifier:
import { Fuul } from '@fuul/sdk';
await Fuul.getPointsLeaderboard({
user_identifier: '0x1234...',
identifier_type: 'evm_address',
});Example response:
{
"total_results": 1,
"page": 1,
"page_size": 10,
"results": [
{
"address": "0x1234...",
"total_amount": 15000,
"rank": 42,
"total_attributions": 85
}
]
}Points grouped by conversion
Paginating the response
Field
Behavior
total_results
The number of rows matching the query. Compare it against how many rows you have fetched, not against a sum of point amounts
Page size
Pages fill to page_size even on a program paying several currencies — the filter to point rows runs in the query, not after it
Ordering
Stable. Point amounts tie constantly, so rows are ordered with conversion_external_id and reason as tiebreakers
Points history (movements)
Each movement includes a payout_status field. For point-type movements, this is always confirmed since no on-chain transaction is needed.
API reference
Last updated