disassemble
Disassemble the Move Bytecode Pointed To
For example, if you want to disassemble an on-chain module:
Download the package -
aptos move download
.Compile the package -
aptos move compile
.Cd to the package and disassemble -
aptos move disassemble --bytecode-path ./test.mv
.
Usage
movement aptos move disassemble [OPTIONS] --bytecode-path <BYTECODE_PATH>
Options
--is-script
Treat input file as a script (default is to treat file as a module).--bytecode-path <BYTECODE_PATH>
The path to the bytecode file to disassemble. Assume that two other files reside under the same directory: a source map file.mvsm (possibly) and the Move source code file.move.--code-coverage-path <CODE_COVERAGE_PATH>
(Optional) Path to a coverage file for the VM in order to print trace information in the disassembled output.--output-dir <OUTPUT_DIR>
Output directory for the key files.--assume-yes
Assume yes for all yes/no prompts.--assume-no
Assume no for all yes/no prompts.
Last updated