> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openformat.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Reward XP

> Reward a user with experience points (XP) for completing an action.

<video autoPlay muted controls loop playsInline className="w-full" src="https://mintcdn.com/openformat/vGurOUJG2onkcsD3/assets/nodes/reward-xp.mp4?fit=max&auto=format&n=vGurOUJG2onkcsD3&q=85&s=7bc0dc6c6c0fb60b855c532e2ebf0ac4" data-path="assets/nodes/reward-xp.mp4" />

## Node Inputs

| Key               | Description                                                                               |
| ----------------- | ----------------------------------------------------------------------------------------- |
| `API Key`         | Your OPENFORMAT [API Key](https://app.openformat.tech/home/settings).                     |
| `dApp ID`         | The ID for your OPENFORMAT [dApp](https://app.openformat.tech/home/apps).                 |
| `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](./get-user-profile) node with the `receiver` address.
Why not try out the [XP Rewards Integration](../templates/reward-user-xp) templates with the [Leaderboard](../templates/leaderboard) for a seamless web3 points system integration into your frontend application?
