Sui Module
🚀 Your First Sui Module on M2 using Movement CLI
Install the Movement CLI
Initialize your environment
You can now create a new sui move project with the following command:
This will give you a folder to access into:
Open it in your favorite editor:
Create your move file:
Now you have the following folder structure:
Inside hello_world.move
you can paste the following code:
After building your project, you can deploy it to the M2 testnet:
The object ID under the Published Objects
section is the ID of your module. You can now call the mint
function on your module with that object ID:
Don't forget to replace <package object ID>
with the object ID of your module from previous console output!
Congratulations! You have just written, published, and executed your first SuiMove module on the testnet!
Last updated