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

Reward a badge in your application to celebrate user achievements, such as completing a series of tasks, reaching a milestone, participating in an event, or contributing quality content.

You can create a badge [using the sdk](https://docs.openformat.tech/sdks/typescript/create-badge) or via the [dashboard](https://app.openformat.tech/home/apps).

> [!NOTE]
>
> Before proceeding ensure you've instantiated the SDK and created an App. \\
>
> See the [Quickstart](https://docs.openformat.tech/sdks/typescript/quickstart.md) to get setup.

**1. Reward Badge**

> [accordion] Requires gas
>
> 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).

```tsx Typescript theme={null}
import { ActivityType, RewardType } from "@openformat/sdk";

const params = [
  {
    // The address of the user who is receiving the badge
    receiver: "0x03755352654D73DA06756077Dd7f040ADcE3Fd58",
    // A given ID for mission a user completes in your application
    id: "complete_quiz",
    // The smart contract address of the BADGE you want to reward
    address: "0x36db942d490f8091b91e020a8a934040ca426968",
    // The amount of badges the receiver address will receive
    amount: 1,
    // The type of transaction to trigger e.g mint or transfer
    actionType: RewardActionType.MINT,
    // The type of reward
    rewardType: RewardType.BADGE,
    // The URI of the badge metadata
    uri: "ipfs://",
  },
];

await sdk.Reward.trigger(params);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.