<p>Your wallet is locked with a passphrase, first you need to unlock it before executing commands related to private keys using <a href="https://bitcoincore.org/en/doc/0.17.0/rpc/wallet/walletpassphrase/" rel="nofollow noreferrer">walletpassphrase</a>:</p>

<pre><code># 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 
</code></pre>

CC BY-SA 4.0
2018-11-29T09:09:17.280Z
i am running the bitcoind-cli in regtest also i have not added any passphrase
Pankaj Kumar
CC BY-SA 4.0
2018-11-29T12:57:02.737Z
The wallet is protected with a password. You can always delete your regtest files and start over
JBaczuk
CC BY-SA 4.0
2018-11-30T09:05:53.380Z
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
CC BY-SA 4.0
2018-11-28T14:23:05.277Z
2018-11-28T18:19:31.630Z
2018-11-28T18:19:31.630Z
JBaczuk
<p>Bitcoin rpc calls giving error </p>

<p>-13: Error: Please enter the wallet passphrase with walletpassphrase first.</p>

<bitcoin-core><json-rpc>
RPC giving error -13
Pankaj Kumar
# RPC giving error -13

(Asked by: username_0 on 2018-11-28)

Bitcoin rpc calls giving error

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

**Tags:** bitcoin-core, json-rpc


---

## 1 answers

### Answer by username_1 on 2018-11-28. Score: 3

Your wallet is locked with a passphrase, first you need to unlock it before executing commands related to private keys using [walletpassphrase](https://bitcoincore.org/en/doc/0.17.0/rpc/wallet/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 

```

> **Comments:**
> **username_0**: i am running the bitcoind-cli in regtest also i have not added any passphrase  
> **username_1**: The wallet is protected with a password. You can always delete your regtest files and start over  
> **username_0**: 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 ?  

---

