Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: AleksandarTheConfused on June 12, 2017, 06:36:46 AM



Title: Question regarding the recovery of bitcoins
Post by: AleksandarTheConfused on June 12, 2017, 06:36:46 AM
Bitcoin Client Software and Version Number: Bitcoin Core and Electrum (the latest versions)
Operating System: Windows 7 Ultimate 64-bit
System Hardware Specs: 3.1 GHz Eight-core CPU with 16 GB RAM
Description of Problem: Question regarding the recovery of bitcoins

So, before 3 years I had a bitcoin wallet, that I managed with Bitcoin core. I still have a backed-up version of the wallet.dat file from then.
My question is can I do these steps to recover my wallet:
1) Download Bitcoin Core and in the AppData\Bitcoin\wallet.dat, a new wallet.dat file is created - I replace the newly-created wallet.dat file with my old backed-up one.
2) Since my Bitcoin Core won't be synced yet, I won't have any bitcoins visible, but I think I would be able to see my private key in the Bitcoin Core client.
3) I would download Electrum and in a new Electrum wallet, I believe there is the option of sweeping bitcoins from a private key.

Is that possible, or am I missing something or doing something wrong?
Thank you to all, have a wonderful day!


Title: Re: Question regarding the recovery of bitcoins
Post by: ranochigo on June 12, 2017, 06:48:15 AM
That will work. You have to use listaddressgroupings in the console, go to Help>Debug Log>Console and key that in. Check the addresses using blockexplorer.com for coins. After that, use
Code:
walletpassphrase PASSWORDHERE 600
if you have encryption on the wallet.
Code:
dumpprivkey 1ADDRESS
in the console and dump those private keys. You can sweep them into an Electrum wallet.


Title: Re: Question regarding the recovery of bitcoins
Post by: AleksandarTheConfused on June 12, 2017, 06:59:23 AM
I don't have encryption on my wallet. Do you mean I should paste "listaddressgroupings" in the window that opens through "Help>Debug Log>Console" in Bitcoin Core? Also "dumpprivkey MYADRESS" would give me my WIP?


Title: Re: Question regarding the recovery of bitcoins
Post by: ranochigo on June 12, 2017, 07:00:47 AM
I don't have encryption on my wallet. Do you mean I should paste "listaddressgroupings" in the window that opens through "Help>Debug Log>Console" in Bitcoin Core? Also "dumpprivkey MYADRESS" would give me my WIP?
Yes. That command will list all your addresses, including the change address which may have Bitcoins inside.

Dumpprivkey will give you your private key of address.


Title: Re: Question regarding the recovery of bitcoins
Post by: cr1776 on June 12, 2017, 08:52:07 AM
Make another backup or two of the wallet.dat now just in case.  Otherwise, it seems like you have things under control with the advice above.