hack.chat web3 integration

An overview of the Solana smart contract architecture powering channel ownership, moderation, and cosmetic global effects.

Channel Control & Moderation (Coming Soon)

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.

Donations & Visual Effects (Live)

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.

← back to github repository
1
pulse_glow
standard glowing pulse effect.
2
color_swirl
hue rotation over time.
3
bounce_move
gentle vertical bouncing.
4
swirl_&_pulse
combined hue rotate and shadow pulse.
5
gold_pulse
overrides color to #ffd700 automatically.
6
glitch_text
rapid, erratic translation jumps.
7
neon_flicker
cyberpunk style erratic bright neon flickering.
8
gradient_shift
full rgb text-clipped gradient animation.
9
shake_anim
aggressive left-to-right trembling.
10
float_anim
smooth, slow floating up and down.
11
hellfire
deep layered orange/red shadow gradients.
12
matrix_stretch
vertical scaling and green glow toggling.
13
flip_3d
continuous 360-degree y-axis rotation.
14
squeeze_anim
jelly-like scale distortion.
15
tracking_breathe
expansion and contraction of letter spacing.
16
phantom_shimmer
alpha-channel gradient sweeping across the text.
17
wave_anim
gentle scale and translate combined.
18
pop_anim
quick scaling outward.
19
swing_anim
pendulum rotation from the top origin.
20
blur_reveal
pulsing in and out of a blurred state.