Sometimes, you are in need of regenerating your wallet. In the case of after a fork (software update) or even if you misplaced your wallet. This is how you restore it.
Load your wallet in electronero-wallet-cli.
viewkey (followed by password)
spendkey (followed by password)
into the electronero-wallet-cli command prompt. One at a time. Write down your public address, secret viewkey, and secret spendkey, if you haven't already. This is the best way to make sure you always have access to your Electronero wallet in the future.
- Backup all of your wallet related files. These include:
yourwalletname.bin yourwalletname.bin.keys yourwalletname.bin.address.txt
This can be done by copying the files to a new folder.
Sometimes, when creating your wallet, you might have named it something without the .bin part. In that case, the wallet file will be called yourwalletname without the .bin at the end.
Load electronero-wallet-cli, this time with your new wallet name and the restore flags --restore-from-keys type in the name of the wallet you just deleted. On Main Net it should look like
If you're on testnet . . .It should look like
If you're on stagenet . . .It should look like
Enter address, private viewkey, private spendkey and a new password. The wallet will now refresh and hopefully your locked funds will now become unlocked as your outputs are scanned on the blockchain.
./electronero-wallet-cli --restore-from-keys yourwalletname
./electronero-wallet-cli --testnet --restore-from-keys yourwalletname
./electronero-wallet-cli --stagenet --restore-from-keys yourwalletname
- You may now safely access your Electronero wallet using web services or the electronero-wallet-cli or electronero-wallet-rpc
- Close electronero-wallet-cli by typing