An overview of the Solana smart contract architecture powering channel ownership, moderation, and cosmetic global effects.
Channel ownership is established via an on-chain PDA. To execute a ClaimChannel instruction,
users must hold a verified hack.chat collection NFT in their wallet. Once claimed, owners can securely assign
up to 20 moderator 6-character tripcodes directly to the channel's state account.
Note: While the smart contract fully supports claiming channels, assigning mods, and reclaiming ownership, the server-side enforcement of these room controls (kicking, banning, setting topics) is currently unreleased in the client.
Global name effects are unlocked by executing a RecordDonation smart contract transaction. This
sends SOL directly to the protocol treasury and permanently records your unlocked effect ID to your user PDA
on the blockchain.
To unlock an effect, type the following command directly in the chat server:
/donate <amount> <id>
* if the id is omitted, a random effect will be chosen for you automatically.