encryptwallet
#
CommandEncrypts the wallet with 'passphrase'. This is for first time encryption. 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. Use the walletpassphrase call for this, and then walletlock call. If the wallet is already encrypted, use the walletpassphrasechange call.
#
Argumentspassphrase
#
(string)
The pass phrase to encrypt the wallet with. It must be at least 1 character, but should be long.
#
ExamplesEncrypt your wallet
Now set the passphrase to use the wallet, such as for signing or sending pacprotocol
Now we can do something like sign
Now lock the wallet again by removing the passphrase
As a json rpc call
Running following help command
Will produce following output: