walletlock

Back to wallet

Wallet

Summary

Removes the wallet encryption key from memory, locking the wallet.

Description

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.

Arguments

None.

Results

  • value (NONE): No description.

Examples

Set the passphrase for 2 minutes to perform a transaction
qbit-cli walletpassphrase "my pass phrase" 120
Perform a send (requires passphrase set)
qbit-cli sendtoaddress "qb1zqqqsyqcyq5rqwzqfpg9scrgwpugpzysnzs23v9ccrydpk8qarc0sjq57mw" 1.0
Clear the passphrase since we are done before 2 minutes is up
qbit-cli walletlock
As a JSON-RPC call
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "walletlock", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/