bitcoin-cli walletlock

decryption key in seconds. "passphrase" (string) The pass phrase to encrypt the wallet with. Use the walletpassphrase call for this, and then walletlock call. Examples: Set the passphrase for 2 minutes to perform a transaction bitcoin-cli walletpassphrase "my pass phrase" 120. This is needed prior to performing transactions related to private keys such as sending bitcoins. Limited to at most (230) seconds. Command: encryptwallet, notes: The encryptwallet, rPC encrypts the wallet with a passphrase. Parameter #1a passphrase, resulta notice (with program shutdown on success). To decrypt a Bitcoin wallet in the bitcoin-cli, you need the walletpassphrase command. Help about encrypting the wallet: bitcoin-cli help encryptwallet, encrypt the wallet for the first time.

Chain Query: Bitcoin API: encryptwallet
Bitcoin Core : walletpassphrase (0.16.0 RPC)

This is for first time encryption. RPC Help walletlock, removes the wallet encryption key from memory, locking the wallet. After encryption is enabled, you will need to enter the passphrase to use private keys. Now we can do something like sign bitcoin-cli signmessage "address" "test message". After this, any calls that interact with private keys such as sending or signing will require the passphrase to be set prior the making these calls. "newpassphrase" (string) The new passphrase. A web based interface to the Bitcoin API json-RPC.

Lock the wallet again by removing the passphrase bitcoin - cli walletlock,. Examples: Unlock the wallet for 60 seconds bitcoin-cli walletpassphrase my pass phrase 60 Lock the wallet again (before 60 seconds) bitcoin - cli walletlock. Calling help in bitcoin - cli omits the commands: walletlock walletpassphrase walletpassphrasechange.