Bitcoin rpc calls giving error

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

1 Answer 1


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 Commented Nov 29, 2018 at 9:09
  • 1
    The wallet is protected with a password. You can always delete your regtest files and start over
    – JBaczuk
    Commented Nov 29, 2018 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 ? Commented Nov 30, 2018 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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