bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/encryptwallet
Wallet

encryptwallet

Encrypts the wallet with passphrase. After this, any calls that interact with private keys will require the passphrase.

Parameters

passphrasestringREQUIRED
The passphrase to encrypt the wallet with (minimum 1 character)

Returns

stringWarning message about needing to restart

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"encryptwallet","params":["my passphrase"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

"wallet encrypted; The keypool has been flushed and a new HD seed was generated. You need to make a new backup."
← Previous
dumpwallet
Next →
getaddressesbylabel

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗