Skip to content

Restore CLI Wallet from Seedphrase

MrT edited this page Jun 22, 2020 · 2 revisions

Contents :

Preamble

Before you start, make sure your Software is up to date!

Some errors might require you to restore your Wallet from Seedphrase. If you have a transaction Error and can't seem to resolve it, restoring from Seed is the way to go!

First, try to keep Chaindata intact to preserve your transactionhistory. If the Error persists, Go for the second Option and Wipe Chaindata too!

Restore and keep Chaindata

First let's lay out the overall procedure, more detailed instructions with screenshots are below:

  1. Create recovery directory
  2. Copy Node api secret into your recovery Directory
  3. Switch into your Recovery Directory
  4. Recover Wallet from Seed

Make sure your Node is running to recover your Wallet

Linux

mkdir recovery 
cd recovery  
cp ~/.mwc/main/.api_secret .
mwc-wallet init -h -r 
<enter recovery phrase> 

Make sure to always executes commands from this new recovery Directory! All your Wallet Data will be stored here now!

Windows

mkdir recovery 
cd recovery  
copy C:\Users\%username%\.mwc\main\.api_secret %cd%  
mwc-wallet.exe init -h -r  
<enter recovery phrase> 

Make sure to always executes commands from this new recovery Directory! All your Wallet Data will be stored here now!


Restore and Wipe Chaindata

First let's lay out the overall procedure, the needed Commmands to accomplish this are below.

  1. Wipe Chaindata
  2. Create a new recovery directory
  3. Copy Node api secret into your new recovery Directory
  4. Switch into your new Recovery Directory
  5. Recover Wallet from Seed

Make sure your Node is stopped for this

Linux

rm -rf ~/.mwc/main/chain_data

Now start the node and Wait for it to sync!

mkdir recovery2
cd recovery2
cp ~/.mwc/main/.api_secret .
mwc-wallet init -h -r
<enter recovery phrase>

Make sure to always execute commands from this new recovery Directory! All your Wallet Data will be stored here now!

Windows

rmdir /S /Q C:\Users\%username%\.mwc\main\chain_data

Now start the node and Wait for it to sync!

mkdir recovery2
cd recovery2
copy C:\Users\%username%\.mwc\main\.api_secret %cd%
mwc-wallet.exe init -h -r
<enter recovery phrase>

Make sure to always execute commands from this new recovery Directory! All your Wallet Data will be stored here now!

Clone this wiki locally