Skip to content
Discussion options

You must be logged in to vote

When you publish a Move module by default the CLI will include the source code as well as the bytecode. Authors do have the option to opt out of this behavior however. So there are two approaches:

Source available on chain

By default, the source for a Move module is included when it is published on chain. If that is the case, you can download it like this:

aptos move download --account 0x1 --package MoveStdlib

Source not available on chain

Aptos Labs + Verichains recently released a decompiler for this purpose. The source code won't be an exact match syntactically of the original code, but it should be semantically identical.

# Install Revela. The CLI needs this separate tool to decompile…

Replies: 1 comment

Comment options

banool
Mar 7, 2024
Maintainer Author

You must be logged in to vote
0 replies
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
1 participant