Move on Aptos IntelliJ Plugin Help

Decompiling

IntelliJ-Move provides integration with the aptos move decompile command.

Decompile a single bytecode file

  1. Open the Aptos Bytecode file (with the .mv extension). By default, the IDE will show the binary contents of the file.

    Bytecode File contents

    If Aptos CLI is configured correctly, notification will be shown at the top of the file, allowing to decompile it and show the source code. Underneath, aptos move decompile will be called.

  2. Click on Decompile into source code to see the original .move file. It will be created near the bytecode file with the name BYTECODE_FILENAME.move

Decompile a package from the blockchain

  1. Open Aptos tool window View | Tool Windows | Aptos. Click on the Fetch on-chain package action button.

    Fetch Package Action
  2. In the Aptos Decompiler dialog, choose Address, Package name and optionally other parameters.

    Aptos Decompiler dialog

    Click OK.

  3. After downloading and decompilation process finished, check out your selected Output directory for the result.

Last modified: 01 July 2024