save-message
— name of the package.
This creates a sources
directory and a Move.toml
file.
Move.toml
file and edit it to add [addresses]
and [dev-addresses]
, where:
dev = "_"
— your default Aptos account.dev = "0xC0FFEE"
— an alternative Aptos account for tests.aptos init > custom
. This will start a configuration process, during which you need to set up your Chainstack endpoint and Martian wallet private key. Adding the private key will retrieve your Aptos public address automatically.
skip
since you have already funded your account on the previous step.
.aptos
directory with a config.yaml
file inside it. In config.yaml
, you will find your project setup.
sources
directory. Create your Move module file message.move
which allows you to call the set_message
function and save a string on-chain:
set_message
and get_message
functions work:
yes
to confirm publishing the transaction on the Aptos chain.
The module will publish and the terminal will return the module information. You can use the transaction hash to retrieve transaction details. To do so, run:
run
— a Move command to call functionsfunction-id
— a function to callargs
— arguments of the functionyes
to confirm publishing the transaction on the Aptos chain.