walletlock
#
CommandRemoves the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.
#
ExamplesSet 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 json rpc call
Running following help command
Will produce following output: