<p><code>bitcoin-wallet</code> is a separate tool that Bitcoin Core ships. If you open the terminal, the <code>bitcoin-wallet</code> command should be available to you to use. It read wallets from the data directory, so you provide it the name of the wallet, not the path to the wallet file. Your command would look something like:</p>
<pre><code>bitcoin-wallet -wallet=mywallet salvage
</code></pre>

CC BY-SA 4.0
2024-03-19T21:51:42.373Z
Hi! I'm jumping in as I have the same problem. Running that command I unfortunately get this:


"Salvage: Database salvage found errors, all data may not be recoverable."    
"Salvage: WARNING: Unexpected end of file while reading salvage output."   
"Salvage(aggressive) found no records in D:\...."   


does it mean there is no hope? By the way, I'm pretty sure the wallet itself not corrupted, it's just a very old file (>10 years), does that change things?
Pronte
CC BY-SA 4.0
2024-03-20T01:31:12.683Z
@Pronte If you don't think your wallet is corrupted, don't use salvage, it'll only make it worse (i.e. corrupting it).
Ava Chow
CC BY-SA 4.0
2022-10-21T21:27:26.647Z
2022-10-21T21:27:26.647Z
Ava Chow
<p>One of my wallets got corrupted for some reason and Bitcoin Core version v0.21.1 (on MacOS) fails to start, suggesting I use the salvage wallet method.</p>
<p>I've been searching online to see what that means, and most info suggests I start the Bitcoin Core app from the terminal, using the -salvagewallet option. However, this gives me an invalid argument error and the app still fails to start.</p>
<p>Later I've read that the salvage wallet was moved to the bitcoin-wallet tool. I'm assuming that's referring to the Console and it assumes I can start the application. To do that, I've moved the corrupt wallet folder outside the app, so I can start it, at least. I've then tried to import the corrupt wallet, but this also fails.</p>
<p>I have 2 questions:</p>
<ol>
<li><p>Is there an updated method of salvaging the corrupted wallet?</p>
</li>
<li><p>If not, or the salvaging fails, does a much older version of the wallet help? This older version will, for sure, not include most (if any) of the new addresses that had money on them, but maybe Bitcoin Core has a way of deterministically finding those addresses from its seed when reindexing? (if that makes any sense)</p>
</li>
</ol>
<p>Thanks!</p>

<bitcoin-core><mac>
Can't find Salvage Wallet option anymore in Bitcoin Core
user1782560
# Can't find Salvage Wallet option anymore in Bitcoin Core

(Asked by: username_0 on 2022-10-21)

One of my wallets got corrupted for some reason and Bitcoin Core version v0.21.1 (on MacOS) fails to start, suggesting I use the salvage wallet method.

I've been searching online to see what that means, and most info suggests I start the Bitcoin Core app from the terminal, using the -salvagewallet option. However, this gives me an invalid argument error and the app still fails to start.

Later I've read that the salvage wallet was moved to the bitcoin-wallet tool. I'm assuming that's referring to the Console and it assumes I can start the application. To do that, I've moved the corrupt wallet folder outside the app, so I can start it, at least. I've then tried to import the corrupt wallet, but this also fails.

I have 2 questions:

1. Is there an updated method of salvaging the corrupted wallet?
2. If not, or the salvaging fails, does a much older version of the wallet help? This older version will, for sure, not include most (if any) of the new addresses that had money on them, but maybe Bitcoin Core has a way of deterministically finding those addresses from its seed when reindexing? (if that makes any sense)

Thanks!

**Tags:** bitcoin-core, mac


---

## 1 answers

### Answer by username_1 on 2022-10-21. Score: 2

`bitcoin-wallet` is a separate tool that Bitcoin Core ships. If you open the terminal, the `bitcoin-wallet` command should be available to you to use. It read wallets from the data directory, so you provide it the name of the wallet, not the path to the wallet file. Your command would look something like:

```
bitcoin-wallet -wallet=mywallet salvage

```

> **Comments:**
> **username_2**: Hi! I'm jumping in as I have the same problem. Running that command I unfortunately get this:   "Salvage: Database salvage found errors, all data may not be recoverable."     "Salvage: WARNING: Unexpected end of file while reading salvage output."    "Salvage(aggressive) found no records in D:\...."      does it mean there is no hope? By the way, I'm pretty sure the wallet itself not corrupted, it's just a very old file (>10 years), does that change things?  
> **username_1**: @username_2 If you don't think your wallet is corrupted, don't use salvage, it'll only make it worse (i.e. corrupting it).  

---

