<p><code>-salvagewallet</code> is not a command that is run from the debug console. It is not one of Bitcoin Core's RPC calls. Rather <code>-salvagewallet</code> is a command line option. You set it in the command that is used to run Bitcoin Core or you set it in the bitcoin.conf file by adding <code>salvagewallet=1</code> to the bitcoin.conf file and then starting Bitcoin Core.</p>

<p>Note that <code>-salvagewallet</code> does not always work and sometimes may result in corruption of your wallet if it is not already corrupted. It is only as a last resort option. You should always make a backup of your wallet file prior to starting Bitcoin Core with <code>-salvagewallet</code>.</p>

CC BY-SA 3.0
2018-01-07T05:12:51.027Z
It has been suggested to rename it to `-savagewallet`.
Pieter Wuille
CC BY-SA 3.0
2018-01-07T03:47:06.483Z
2018-01-07T03:47:06.483Z
Ava Chow
<p>I want to try the <code>-salvagewallet</code> command, but it is not in the console. What is the command line syntax?</p>

<bitcoin-core><command-line-options>
salvagewallet is not in the Bitcoin Core Console
user72877
# salvagewallet is not in the Bitcoin Core Console

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

I want to try the `-salvagewallet` command, but it is not in the console. What is the command line syntax?

**Tags:** bitcoin-core, command-line-options


---

## 1 answers

### Answer by username_1 on 2018-01-07. Score: 3

`-salvagewallet` is not a command that is run from the debug console. It is not one of Bitcoin Core's RPC calls. Rather `-salvagewallet` is a command line option. You set it in the command that is used to run Bitcoin Core or you set it in the bitcoin.conf file by adding `salvagewallet=1` to the bitcoin.conf file and then starting Bitcoin Core.

Note that `-salvagewallet` does not always work and sometimes may result in corruption of your wallet if it is not already corrupted. It is only as a last resort option. You should always make a backup of your wallet file prior to starting Bitcoin Core with `-salvagewallet`.

> **Comments:**
> **username_2**: It has been suggested to rename it to `-savagewallet`.  

---

