wallet lock
Legacy spelling: this command was previously spelled
wallet-lock-private-keys. Both spellings work, but only the nested spelling shown here appears inhelpand tab completion (v1.4.5+).
Locks the private keys so they can't be used until they are unlocked again.
Usage
wallet lock
Notes
This command is available in cold wallet mode (--cold-wallet). Locking does not remove the encryption, the password is preserved. Use wallet unlock to unlock again.
Related
wallet unlock: Unlock the private keys.wallet encrypt: Set an encryption password.wallet decrypt: Remove encryption entirely.