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

1 Answer 1


-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.

  • It has been suggested to rename it to -savagewallet. Jan 7, 2018 at 5:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.