walletlock
walletlock
Removes the wallet encryption key from memory, effectively locking the wallet.
After calling this method, you will need to use walletpassphrase
again before being able to call any methods that require the wallet to be unlocked.
Result
Examples
Set the passphrase for 2 minutes to perform a transaction:
Perform a send (requires passphrase set):
Clear the passphrase since we are done before 2 minutes is up:
As a JSON-RPC call: