Skip to content

Community Flow Example

This example demonstrates how to manage a community, issue SBTs, and configure reputation.

Steps

  1. Registration: Register your community name and metadata on-chain.
  2. SBT Issuance: Mint Soul-Bound Tokens to members to define their roles.
  3. 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,
});

Released under the MIT License. | Last Updated: 2026-01-15 09:16