Day 9 

The Community Blockchain

How to interact with first Move Module on the Cedra Network 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
Copy
git clone2. Build the Cedra CLI based on instructions at3. Fund Your Account
Copy
aptos account fund-with-faucet --account default

Step 2: Compile and Test a Move Module
1. Navigate to the Example Module
Copy
cd ~/cedra/aptos-move/move-examples/hello_blockchain

2. Compile the Module
Copy
aptos move compile --named-addresses hello_blockchain=default

3. Test the Module
Copy
aptos move test --named-addresses hello_blockchain=default

Step 3: Publish the Move Module
Copy
aptos move publish --named-addresses hello_blockchain=default

Step 4: Interact with the Move Module

1. Call the Module’s Entry Function
Copy
aptos move run \
  --function-id 'default::message::set_message' \
  --args 'string:hello, blockchain'
2. View the Updated Resource
Copy
curlIf at all get any error visit