How to move your Pirate to a safe new address with PirateOcean

Oszy
Pirate Chain
Published in
4 min readJun 6, 2019

Every Agama user who entered mnemonic seed or private key into Agama in the past few months are potentially at risk of their funds being stolen.
While it is very unlikely to affect Pirate in any way let’s not take any chances, and see how to secure the funds you have.

What you’ll need to to, is to create a new ZS address, in any other Pirate Wallet (PirateOcean, KomodoQT, Verus-Agama) in this example, I will show you how to do it in PirateOcean.

Download the PirateOcean wallet from Github.
Windows: https://github.com/TheComputerGenie/PirateOcean/releases/download/Beta1/PirateWallet_2001531b1_win.zip
Linux: https://github.com/TheComputerGenie/PirateOcean/releases/download/Beta1/PirateWallet_2001531b1_linux.7z
Mac:https://github.com/TheComputerGenie/PirateOcean/releases/download/Beta1/PirateWallet_2001531b1_mac.zip
Please note that PirateOcean’s current version may not work with the latest release of Apple Mac OSX Mojave. If you experience difficulties running PirateOcean on your Mac please use our Verus-Agama guide.

Once you have PirateOcean downloaded, start it up, it will use the same blockchain and wallet data as Agama, so no need to re-download the chain.
Let it sync the chain and you should see your current address(es) with your full balance.

To get a new address, and save the secret key of the new address, we will open up the console, and issue some commands.

You can find the console in Help > Debug Window > Console Tab

Enter the follwing command:
z_getnewaddress

In the next line you will see a new address starting with “zs”, make a note of this address, and also copy it to the clipboard.

Next, while still in the console enter the following command:
z_exportkey “your new address”

You will see the secret extended key appear below, starting with “secret-extended-key-main1”.
Save it to a safe place don’t lose it, you will need it to import in the new wallet.

Close debug window, and go to Z-Send tab.

Send all funds to the newly created address.
Do not close the wallet, until it is finished. For larger amounts with many inputs, it can take longer than usual. You can check status in the console with the command z_getoperationresult .

When the funds are received on the new ZS address, and you have you private key saved for the new address, you can now close PirateOcean and remove/rename or move the wallet.dat file.
I suggest to rename it just in case you might need it in case anything happens.

Location of the file are the following:
Windows: %appdata%\Komodo\PIRATE\
Mac: ~/Library/Application\ Support/Komodo/PIRATE/
Linux: ~/.komodo/PIRATE/

Now that you have your old wallet.dat renamed or moved, start up
PirateOcean again, wait for the chain to sync, bring up the console same way as before Help > Debug Window > Console Tab

You will now need the secret extended key you saved earlier.
Enter the following command to the console:
z_importkey “secret-extended-key”

If you see “null” as a result that is fine, it means no errors.

You can also use:
z_importkey “secret-extended-key” whenkeyisnew BlockHeight
where BlockHeight is the block where re-scan should start from, in this case, use current block height from explorer -60 if you sent the funds within the last hour. This can speed up the re-scan.

This will re-scan the blockchain for transactions related to your new address, so be patient and let it finish. If a re-scan does not happen automatically, close the wallet, create a shortcut on the Desktop for PirateOcean and start it with -rescan parameter.

If everything went well, you now have a safe new wallet.dat and a new ZS address for Pirate, and you should be able to see your full balance.

The process is very similar in Verus-Agama and QT.
Get new address, save secret key, send to new address, move old wallet.dat, import secret key to new wallet.dat, re-sync, backup new wallet.dat .

If you have any trouble and need help moving your funds, please visit our Discord’s #wallet-support channel.
https://discord.gg/7DjnMsy

--

--