Before proceeding ensure you’ve instantiated the SDK and created an App.
See the Quickstart to get setup.
See the Quickstart to get setup.
Now you have created your badge, you can reward it to your users.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create Badge
Requires gas
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());
}