walletlock - Particl RPC

walletlock

Removes 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.

Examples:

Set the passphrase for 2 minutes to perform a transaction
> particl-cli walletpassphrase "my pass phrase" 120

Perform a send (requires passphrase set)
> particl-cli sendtoaddress "PbpVcjgYatnkKgveaeqhkeQBFwjqR7jKBR" 1.0

Clear the passphrase since we are done before 2 minutes is up
> particl-cli walletlock 

As json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "walletlock", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:51935/


This is a website, created out of frustration with uncomplete and outdated Particl Core RPC documentation online.

Particl version: 0.16.0.1

Note that the RPC is from a regtest node (for completeness), so it includes some additional calls that a regular node doesn't have.


Anon






Mnemonic