Trigger XP in your application when a user completes a specific action, such as registering, completing a task, watching a video or posting a comment.

1

Instantiate SDK

Before you can instantiate the SDK you need to Create an App.

2

Reward XP

The functions in this code snippet require gas. You can obtain gas from a faucet, or we can provide a small amount of testnet tokens on Discord to get you started.

Congratulations 🎉 You’ve just rewarded your first 10 XP. You can view this transaction in a block explorer using the returned transaction hash or see it on our on-chain leaderboard through our API.