Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: YannaOs on November 11, 2020, 02:56:00 PM



Title: How to restore corrupted Bitcoin Core wallet
Post by: YannaOs on November 11, 2020, 02:56:00 PM
Hello!

I have problem. I have old Bitcoin Core wallet.dat but i can't withdraw btc from it cause it's error said that wallet can be corrupted. So i tried salvagewallet command but nothing happened, no error, console shut down after running Bitcoin Core.

Then i tried pywallet and I restored the wallet, I have new copy of wallet.dat, but the problem is that... After -resync balance in Bitcoin Core is 0. The new wallet seems to be working, but... There are not my btc here.

My question is, what can I do next? Why my balance is 0, is it possible that the wallet is so corrupted that my btc just disappear and it cannot be withdrawn?


Title: Re: How to restore corrupted Bitcoin Core wallet
Post by: BrewMaster on November 11, 2020, 04:12:15 PM
I have old Bitcoin Core wallet.dat

since this has become a very common issue nowadays let me ask you a question first: did you find or buy this wallet file from somewhere? if that's the case you shouldn't waste your time and others.


Title: Re: How to restore corrupted Bitcoin Core wallet
Post by: BitMaxz on November 11, 2020, 04:54:05 PM
Then i tried pywallet and I restored the wallet, I have new copy of wallet.dat, but the problem is that... After -resync balance in Bitcoin Core is 0. The new wallet seems to be working, but... There are not my btc here.

Take note that let the bitcoin core to sync first if you just recently installed it so that it can take the latest data from the mainnet. If it was already fully sync and doesn't show any balance can you try to check each address from addresses tab to any block explorer like https://www.blockchain.com/
Just to check if your Bitcoins are still there.

If your Bitcoin still there in some of your addresses you can export them and import them to other wallet like Electrum.

Use this command on the Bitcoin core debug console to export the private key.

Code:
dumpprivkey "myaddress"

Export the private key only to address with balance.

Once you have the private key backups you can now import it to Electrum check this guide below.
- Importing your private keys into Electrum (https://bitcoinelectrum.com/importing-your-private-keys-into-electrum/)