The HUDDLN XP subgraph allows you to access any XP data submitted by our partners.
The data is also accessible on-chain with smart contract calls, but for a majority of use cases accessing the data through a subgraph is the best option.
The HUDDLN XP subgraph allows you to access any XP data submitted by our partners.
The data is also accessible on-chain with smart contract calls, but for a majority of use cases accessing the data through a subgraph is the best option.
Here are some example queries for common use cases:
Search for a user's score based on their score type and wallet address:
List all users within a project based on their total score (all score types added together) in descending order:
List all scoreboards for a particular project (scoreboard includes all of a user's scores within that project):
List all actions for a particular project (action includes a name, how many points received for it and a direction. Direction of 0 is increasing, the direction of 1 is decreasing):
Find the total score for a user within a particular project, based on their wallet address: