Nodes
Get User Information
Returns the user’s experience point (XP) balance, the badges they have collected and the actions they have completed within that specific dApp.
Node Inputs
Key | Description |
---|---|
API Key | Your OPENFORMAT API Key. |
dApp ID | The ID for your OPENFORMAT dApp. |
User Account | The account address for the user who’s information you want to find out e.g. 0xeed1… |
Node Outputs
Key | Description |
---|---|
data.user_id | The account address of the user. |
data.xp_balance | The experience points balance of the user. |
data.collected_badges.id | The unique identifier of a collected badge. |
data.collected_badges.name | The name of a collected badge. |
data.completed_actions.name | The name of a completed action. |
data.completed_actions.createdAt | The timestamp when the action was completed. |
data.completed_actions.xp_rewarded | The experience points rewarded for the action. |
What’s next?
Now that you have retrieved the user’s information, you can display their XP balance, collected badges, and completed actions in your frontend application like the example below: