Level Progression Tracker
Calculate your users level and their progression towards the next level based on the on-chain experience points (XP) they have earned. The XP requirements for levelling can be customised to determine how quickly the user progresses.
Use cases
- Educational platforms & e-learning courses: Users can earn XP for completing lessons or passing quizzes. Leveling up can grant access to more advanced courses or special content, thus encouraging continued learning and engagement.
- Employee Engagement Programs: Employees earn XP by completing tasks, achieving targets etc. with levels indicating proficiency or eligibility for rewards.
- Customer Loyalty Programs: Customers earn XP through purchases, reviews, or referrals. Higher levels could offer greater discounts, exclusive offers, or first access to new products.
- Fitness Apps: Users might earn XP for workouts completed or PB’s achieved. Levels could unlock virtual rewards or access to more features.
- Community and Social Platforms: Users could earn XP for contributions like posting quality content or helping other users. Advancing levels might grant moderation privileges or other status indicators e.g. a Discord role.
Prerequisites
-
Setup OPENFORMAT
Before you can continue, please complete the following steps to obtain the necessary credentials:
- Go to the OPENFORMAT Dashboard
- Register for an account
- Generate an API Key
- Create a dApp
- Create a Badge (only if required)
-
An app where you are rewarding on-chain XP
You will need an app where your users have web3 accounts and are rewarded with XP. You can learn more about how to set this up here.
Get Started
Remix this template
Clone this template in BuildShip.
OPENFORMAT Node Inputs
Add your OPENFORMAT API Key
into the Get User Profile node
inputs.
Test Integration
To test the integration, click on Test and add the dappId
and userId
into the query of the request.
Node Inputs
Get User Profile
Key | Description |
---|---|
API Key | Your OPENFORMAT API Key. |
dApp ID | The ID for your OPENFORMAT dApp. |
Level Calculator
Key | Description |
---|---|
XP Balance | The amount of XP the user has earned, which will come from the output of the Get User Profile node. (String - converted to a number in the node) |
Level XP Requirements | An array of the XP requirements for each level, you can set these values to anything you want and the array can be any length. The default value is [50,100,200,400,800,1600,3200,6400,12800,25600]. (Array of numbers) |