<p>I wrote a <a href="https://walletrecovery.info/how-to-recover-your-corrupt-or-deleted-bitcoin-core-wallet/" rel="nofollow noreferrer">guide to corrupt Bitcoin Wallet recovery.</a>  Yes, you should use <a href="https://github.com/jackjack-jj/pywallet" rel="nofollow noreferrer">pywallet</a>. It can dump the private keys from your wallet to a file even if Bitcoin Core fails to salvage it.  You can then import them into a new wallet.</p>

<p>Dump the wallet with pywallet to extract the private keys:</p>

<pre><code>python pywallet.py –dumpwallet &gt; wallet.text --passphrase= PASSPHRASE
</code></pre>

<p>Now find the address containing your Bitcoins and sweep the private key.</p>

CC BY-SA 4.0
2018-01-11T04:04:58.423Z
2018-11-05T20:39:56.770Z
2018-11-05T20:39:56.770Z
David Veksler
<p>Install Bitcoin Core and they can do all this work to import your old wallet. </p>

<p>Bitcoin Core's -salvagewallet try to recover a broken wallet database (wallet.dat file).</p>

CC BY-SA 4.0
2021-03-02T20:14:50.583Z
thanks for the tip, gonna try this
r3wt
CC BY-SA 3.0
2018-01-06T22:21:21.093Z
2018-01-06T22:21:21.093Z
Tailer
<p>I have an old wallet from 2013 with some BTC in it possibly. I have guesses for what the passphrase could be but not 100% sure on it. Everything I find online is to use pywallet but I unfortunately am a total scrub when it comes to python scripts. So really I am confused exactly what I need to do to obtain the btc out of this wallet. Do I need to extract the private keys from my corrupted wallet and import them into a new wallet? or can I simply merge the corrupted wallet with a new one and the merged wallet will read right? I know pywallet can do all these functions but have no idea myself on how to go about it. Thanks for any help.</p>

<wallet-recovery><wallet.dat>
"wallet corrupt salvage failed" Error. Help with pywallet
Hoon
# "wallet corrupt salvage failed" Error. Help with pywallet

(Asked by: username_0 on 2018-01-06)

I have an old wallet from 2013 with some BTC in it possibly. I have guesses for what the passphrase could be but not 100% sure on it. Everything I find online is to use pywallet but I unfortunately am a total scrub when it comes to python scripts. So really I am confused exactly what I need to do to obtain the btc out of this wallet. Do I need to extract the private keys from my corrupted wallet and import them into a new wallet? or can I simply merge the corrupted wallet with a new one and the merged wallet will read right? I know pywallet can do all these functions but have no idea myself on how to go about it. Thanks for any help.

**Tags:** wallet-recovery, wallet.dat


---

## 2 answers

### Answer by username_1 on 2018-01-11. Score: 2

I wrote a [guide to corrupt Bitcoin Wallet recovery.](https://walletrecovery.info/how-to-recover-your-corrupt-or-deleted-bitcoin-core-wallet/) Yes, you should use [pywallet](https://github.com/jackjack-jj/pywallet). It can dump the private keys from your wallet to a file even if Bitcoin Core fails to salvage it. You can then import them into a new wallet.

Dump the wallet with pywallet to extract the private keys:

```
python pywallet.py –dumpwallet > wallet.text --passphrase= PASSPHRASE

```

Now find the address containing your Bitcoins and sweep the private key.


---

### Answer by username_2 on 2018-01-06. Score: 2

Install Bitcoin Core and they can do all this work to import your old wallet.

Bitcoin Core's -salvagewallet try to recover a broken wallet database (wallet.dat file).

> **Comments:**
> **username_3**: thanks for the tip, gonna try this  

---

