Bitcoin Tutorials - Herong's Tutorial Notes - v1.07, by Herong Yang
"bitcoin-cli walletpassphrase" - Unlock Wallet
This section describes how to unlock with 'bitcoin-cli walletpassphrase' command.
After encrypting my wallet, let me try to dump private keys again.
C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet dumpprivkey mp6mKbgWE25PyyX63zJ8SRibrKugHMkJDE error code: -13 error message: Error: Please enter the wallet passphrase with walletpassphrase first.
Ok. Run the "walletpassphrase" command to unlock the wallet for 60 seconds.
C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet walletpassphrase xxxxxx 60
Dump the private key again.
C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet dumpprivkey mp6mKbgWE25PyyX63zJ8SRibrKugHMkJDE cSr..............................................Q7U
Table of Contents
Access Bitcoin Test Network "-testnet"
"bitcoin-cli getblock" Command
bitcoin-cli Transaction Commands
"bitcoin-cli encryptwallet" - Set Wallet Password
►"bitcoin-cli walletpassphrase" - Unlock Wallet
"bitcoin-cli backupwallet" - Backup Wallet