Reward your existing users with on-chain experience points (XP). This template handles the process of issuing XP directly to users based on their unique identifier, making it easy to integrate gamification into your existing application.
user_id
. Follow the table structure below. You will need to add the following columns: account_address
, private_key
and user_id
.
Remix this template
Supabase Node Inputs
API Key
and API URL
to the Get Row and
Create Row node inputs.OPENFORMAT Node Inputs
API Key
, dApp ID
and Private Key
into
the Reward XP Node inputs.Test Integration
user_id
of your user to the body of the request. e.g.Generate a Leaderboard
Key | Description |
---|---|
API Key | Your OPENFORMAT API Key. You can find this in the Settings page of the Dashboard (String) |
dApp ID | The ID of your OPENFORMAT dApp. You can get this in the Dashboard (String, max 32 characters) |
Private Key | The Private Key of your web3 account. You can find this in the Settings page of the Dashboard. |
Action ID | A random identifier for the action that has been completed, e.g., completed_workout , completed_lesson . (String, max 32 characters) |
Amount of XP | The amount of XP to be rewarded. (Number, whole number only) |
Receiver | The address of the receiver, which will be the existing web3 account or the newly generated account. |
Await | Wait for the transaction to be confirmed on the blockchain. (Boolean, default: true) |