Bitcoin rpc calls giving error

-13: Error: Please enter the wallet passphrase with walletpassphrase first.

Your wallet is locked with a passphrase, first you need to unlock it before executing commands related to private keys using walletpassphrase:

# Unlock the wallet for 60 seconds
$ bitcoin-cli walletpassphrase "my pass phrase" 60

# Some transaction commands ...

# Lock the wallet again (before 60 seconds)
$ bitcoin-cli walletlock 
  • i am running the bitcoind-cli in regtest also i have not added any passphrase – Pankaj Kumar Nov 29 at 9:09
  • The wallet is protected with a password. You can always delete your regtest files and start over – JBaczuk Nov 29 at 12:57
  • when i have first time started the reg test at that time i have not created any wallet passphrase , if there is already wallet passphrase created then how can i see that , Is there is any conf file that store the wallet passphrase ? – Pankaj Kumar Nov 30 at 9:05

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.