Post
Topic
Board Bitcoin Technical Support
Re: How to see bitcoin core addresses on an encrypted wallet.dat
by
keychainX
on 13/12/2018, 13:08:03 UTC
Hi. One of my friends found on a usb stick a wallet.dat backup and i go today to see if has some bitcoin on it and i tried electrum but not working and after bitcoin core, but after i put wallet.dat on bitcoin core at first open get this error

And after a .bak file was created, and now when open bitcoin core appears this

Is there any chance to see bitcoin addresses of wallet or does it need to full sync?

On receiving address tab all is empty.



Looking at the dump, your node is crashing after syncing at block height=237172
And it also seems your wallet.dat is corrupt or in old format.

The fastest and quick/dirty way is open the wallet.dat with nodepad (PC), texteditor(mac) or gedit (ubuntu)
Search for the string "name" and after that you should see a 34 character string starting with "1" which is most probably a bitcoin address which you can check balance online with blockchain.info

Another step I would recommend is to download pywallet from github, https://github.com/jackjack-jj/pywallet which can parse the wallet for you and see what version, addresses etc. There is also a web wrapper on port 8989 so its much easier to use. If you have a PC, you can check your ip in a terminal with ipconfig, then use that ip, like 192.168.0.10 and add ":8989" in a browser and you would be able to open the wallet with a friendly interface. You would first need to run pywallet with "python pywallet.py -web" to start it. Then in a browser type "192.168.0.YOURIP:8989"

You could also try to run this command: python pywallet.py –dumpwallet -datadir="yourpath" > wallet.text --passphrase= PASSPHRASE
to try to dump it.

Third step would be to try to "fix" the wallet which is saving data which can be saved, you would need to run the bitcoin core start command in a terminal with the command option "-salvagewallet" ,it will make a dump of whatever is correct data.

If you need more in depth guidance on any above, just let me know.

/KX