5

Which command should I use to encrypt a previously unencrypted wallet from the command line?

6

The command is: bitcoin-cli encryptwallet mypassphrase.

The list with all commands exposed through bitcoind's RPC API can be found here: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list or can be fetched with the command: bitcoin-cli help.

It's worth noting that the encryptwallet command will not show up in bitcoin-cli help's results once your wallet is encrypted, instead you will get three new commands: walletlock, walletpassphrase and walletpassphrasechange.

| improve this answer | |
  • 1
    Thanks a lot! My problem was that I used "help" to see the list of the commands on another installation with encrypted wallet. So it didn't show me the this command. – Alexey Kalmykov Apr 22 '14 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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