Skip to content
Discussion options

You must be logged in to vote

Let's run through how to execute a Move script with a step by step example, this should answer all your questions.

Make a new directory to work from:

mkdir testing
cd testing

Setup the Aptos CLI:

aptos init

The CLI will ask you which network you want to work with (e.g. local, devnet, testnet, mainnet). It will also ask you for your private key (which looks like this: 0xf1adc8d01c1a890f17efc6b08f92179e6008d43026dd56b71e7b0d9b453536be), or it can generate a new one for you, as part of setting up your account.

From here, initialize a new Move project:

aptos move init --name my_script

Now you need to make a file for your script. So, take the script you created above, and put it in sources/, e…

Replies: 1 comment 5 replies

Comment options

banool
Mar 7, 2024
Maintainer Author

You must be logged in to vote
5 replies
@nikhilsamrat
Comment options

@banool
Comment options

banool Mar 8, 2024
Maintainer Author

@nikhilsamrat
Comment options

@gregnazario
Comment options

@banool
Comment options

banool Mar 8, 2024
Maintainer Author

Answer selected by banool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
move Questions related to the Move Language
3 participants