Skip to content

Payments

All payments are processed on-chain by the Move smart contract. The server never handles funds.

Tipping Posts

Any user can tip a post author using the TipButton on each post. The flow:

  1. Click the tip button and enter an amount
  2. The frontend builds a tip transaction
  3. Your wallet signs and submits the transaction
  4. The contract transfers funds to the post author
  5. A TipEvent is emitted and indexed by the backend

Subscriptions

Creators can set up subscription tiers using configure_tier. Subscribers pay to access exclusive content.

ActionFunctionEvent
Configure a tierconfigure_tier
Subscribe to a creatorsubscribeSubscriptionEvent
Renew a subscriptionrenew_subscriptionSubscriptionEvent

Content Purchases

Content can be gated behind a one-time purchase using the PaywallGate component.

ActionFunctionEvent
Purchase contentpurchase_contentPurchaseEvent

Badge Purchases

Creators can configure badges that users can buy to display on their profile.

ActionFunctionEvent
Configure a badgeconfigure_badge
Purchase a badgepurchase_badgeBadgeEvent

Treasury and Fees

The Forum smart contract maintains a treasury that collects platform fees:

Transaction TypeFee
Marketplace purchases5%
Escrow trades2%
TipsNo fee
SubscriptionsNo fee

Admins can withdraw treasury funds using the withdraw_funds function, which requires the AdminCap capability.