Skip to main content
Create 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.
Before proceeding ensure you’ve instantiated the SDK and created an App.
See the Quickstart to get setup.
1

Create Badge

The functions in this code snippet require gas.If you need support relating to gas, reach out to us on Discord.
async function createBadge() {
  const params: Reward_CreateBadgeParams = {
    name: "Quiz Master",
    symbol: "Quiz Master",
  };

  const badge = await sdk.Reward.createBadge(params);

  console.log("BADGE_ADDRESS:", badge.address());
}
Now you have created your badge, you can reward it to your users.
I