First Move Module Tutorial
This tutorial guides you through compiling, testing, publishing, and interacting with Move modules on the Cedra blockchain's Devnet. Follow these steps to get started:
Step 1: Clone Cedra-Core and Set Up the CLI
1. Clone the Cedra-Core Repository
git clone https://github.com/cedra-network/cedra-core.git ~/cedra2. Build the Cedra CLI based on instructions at Install CLI page
3. Fund Your Account
aptos account fund-with-faucet --account defaultStep 2: Compile and Test a Move Module
1. Navigate to the Example Module
cd ~/cedra/aptos-move/move-examples/hello_blockchain2. Compile the Module
aptos move compile --named-addresses hello_blockchain=default3. Test the Module
aptos move test --named-addresses hello_blockchain=defaultStep 3: Publish the Move Module
aptos move publish --named-addresses hello_blockchain=defaultStep 4: Interact with the Move Module
1. Call the Module’s Entry Function
2. View the Updated Resource
Next Steps
Congratulations! You've published and interacted with your first Move module on the Cedra Network. Explore additional modules in Sample code or create your own!
Last updated