Nodes
Reward XP
Reward a user with experience points (XP) for completing an action.
Node Inputs
Key | Description |
---|---|
API Key | Your OPENFORMAT API Key. |
dApp ID | The ID for your OPENFORMAT dApp. |
Private Key | The private key for the account used to create your dApp. |
Action name | The name of the action that the user has completed e.g. Correct answer |
Amount of XP | The amount of experience points (XP) that you are rewarding the user with e.g. 50. |
receiver | The account address for the user you are rewarding. e.g 0x1234… |
Await | Whether you want to wait for the transaction to be confirmed before returning a response. |
Node Outputs
Key | Description |
---|---|
transactionHash | The hash of the transaction, used to uniquely identify it on the blockchain. |
blockExplorerUrl | A URL to view the transaction details on a block explorer. |
What’s Next?
This reward will now appear in the list of completed_actions
when you use the Get User Information node with the receiver
address.
Why not try out the XP Rewards Integration templates with the Leaderboard for a seamless web3 points system integration into your frontend application?