Sui Move by Example

The documentation elsewhere on this site examines the Sui Move dialect of the Move programming language. The site explains the fundamentals of programming with objects and details how to use Sui Move to write smart contracts, offering smart contract examples that apply these concepts to real-world use cases.

The content in this section expands upon the smart contract examples, providing a component-by-component breakdown for reference when creating your own modules. What is more expressive in the world of code than the code itself? In this section, you'll find examples for most of the features of Sui Move, as well as a number of advanced patterns you can leverage right away to improve your modules.

All code samples are written with the assumption that you use Sui Move, which you can install with this command:

$ cargo install --locked --git --branch "main" sui

Keep in mind that the branch is set to main. If you're developing with our devnet or need more details, follow the instructions at install Sui.

Last update 12/20/2022, 11:37:37 PM