How to restore my wallet or wallet address from a backup
If you find yourself needing to restore your wallet, or the GUAP held at specific blockchain address, then you've likely encountered a serious problem. But hopefully you've followed the instructions here (How do I backup my wallet and GUAP holdings?) and have a recent backup to restore from.
Please see below instructions for restoring your entire wallet from a wallet.dat file backup, and instructions for restoring a GUAP address' holdings from the private key backup.
Method 1 - Restore from
- Make sure your GUAP wallet application is closed. Close your wallet gracefully (File -> Exit or ./guapcoin-cli stop).
- Go to your GUAP wallet folder.
- Backup first: Although this process is well tested and used you should always take another backup of your wallet.dat file before starting.
- Rename the existing wallet.dat file to something like 'old.wallet.dat'
- Locate your backup wallet.dat file that you want to restore from, copy it and then save it into your GUAP wallet folder.
- Launch the GUAP wallet. It should be restored.
Method 2 - Restore a GUAP address from its private key.
- Wallet must be unlocked (unencrypted wallets are always considered unlocked). If your wallet is encrypted (and I hope that it is) then you will need to unlock it.
- Open your console under 'Help' -> 'Debug Window'
- From your private key backup file copy the private key associated with the address you would like to restore.
- Now type
importprivkey yourPrivateKeyInWalletImportFormat AddressLabelOfYourChoicein your console.
- You now have to be patient. On a fast PC it takes ~2 minutes to import, and during this time it looks like you application has hung.
- Once Imported you can check that you have the new address by closing the Debug window and going back to your address book.