> ## 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 Tokens

Reward tokens in your application when a user completes a specific action, such as registering, completing a task, watching a video or posting a comment.

<Info>
  Before proceeding ensure you've instantiated the SDK and created an App. <br />
  See the [Quickstart](/sdks/typescript/quickstart) to get setup.
</Info>

<Steps>
  <Step title="Get the token address">
    * Token addresses are displayed in the [platform](https://app.openformat.tech/home/apps) on the Tokens page.

    <img src="https://mintcdn.com/openformat/vGurOUJG2onkcsD3/images/reward-token/reward-token.jpeg?fit=max&auto=format&n=vGurOUJG2onkcsD3&q=85&s=af7550d0d482d743c1a46ff51d80395e" alt="Reward token" className="rounded-lg" width="5088" height="3060" data-path="images/reward-token/reward-token.jpeg" />
  </Step>

  <Step title="Reward token">
    <Accordion title="Requires gas" icon="gas-pump">
      The functions in this code snippet require [gas](https://ethereum.org/en/developers/docs/gas/).

      If you need support relating to gas, reach out to us on [Discord](https://discord.gg/Aays8HBkZ2).
    </Accordion>

    <CodeGroup>
      ```tsx Typescript theme={null}
      import { RewardActionType, RewardType, toWei } from "@openformat/sdk";

      const params = [
        {
          // The address of the user who is receiving the token
          receiver: "0x821EFACF307Add10fd9A812624955cbEF943265c",
          // A given ID for an action a user completes in your application
          id: "signed-up",
          // The smart contract address of your token
          address: "0x72092f038f94833f37cc197874ac8c9b02689ac1",
          // The amount of tokens the receiver address will receive
          amount: toWei("10"),
          // The type of transaction to trigger e.g mint or transfer
          actionType: RewardActionType.MINT,
          // The type of reward
          rewardType: RewardType.TOKEN,
          // The URI of the token metadata
          uri: "ipfs://",
        },
      ];

      await sdk.Reward.trigger(params);
      ```
    </CodeGroup>
  </Step>
</Steps>

Congratulations 🎉 You've just rewarded your first 10 tokens.

<Tip>
  The [leaderboard API endpoint](/api-reference/endpoint/leaderboard/get-leaderboard) can now be used to quickly setup a
  leaderboard.
</Tip>
