Community Flow Example
This example demonstrates how to manage a community, issue SBTs, and configure reputation.
Steps
- Registration: Register your community name and metadata on-chain.
- SBT Issuance: Mint Soul-Bound Tokens to members to define their roles.
- Reputation Setup: Define rules that calculate member reputation based on activity.
Code Preview
typescript
import { createCommunityClient } from '@aastar/core';
const community = createCommunityClient({ ... });
// Register Community
await community.registerCommunity({
name: 'Alpha DAO',
});
// Mint SBT
await community.mintSBT({
to: memberAddress,
tokenId: 1n,
});