Example Asset Patterns
Reference these examples to learn common asset patterns on Sui, including loyalty tokens, regulated coins, closed-loop tokens, and other digital asset designs.
Fixed Supply
Initialize a coin with a fixed total supply, then lock the supply to prevent further minting using dynamic fields and freezing.
Loyalty Tokens
Use the Sui Closed-Loop Token standard to create tokens that are only valid within specific workflows and services. One example of Closed-Loop Tokens is a loyalty token.
In-Game Currencies
Use the Sui Closed-Loop Token standard to create assets that you can use as currency within a game application.
Soulbound NFTs
Use Sui Move struct abilities and the Sui framework transfer module to make an NFT soulbound (non-transferable).
Staking Rewards
Distribute token rewards proportionally to stakers over time using a reward-per-token accumulator, with O(1) gas cost regardless of staker count.
NFT Rentals
An example that enables users to rent NFTs according to the rules of a provided policy instead of owning them outright.
Kiosk Joining Patterns
Use the asset tokenization packages to create fractional NFTs and fungible tokenized assets on Sui, with support for Kiosk-based transfer policies.
WebAssembly and Template Pattern
This feature was developed to enable Move bytecode serialization and deserialization on the web. In essence, this feature allows you to edit existing contracts in a web environment.