<p>I'm testing v0.21.1 on linux. I create a new blank wallet with: <code>bitcoin-cli createwallet &quot;my_wallet&quot; false true</code></p>
<p>But when I try to create a new address with <code>bitcoin-cli getnewaddress</code> I get the following error:</p>
<pre><code>error code: -4
error message:
Error: This wallet has no available keys
</code></pre>
<p>What am I doing wrong? Thanks in advance :-)</p>

<bitcoin-core><bitcoin-cli>
Creating a new address in a blank wallet
john
# Creating a new address in a blank wallet

(Asked by: username_0 on 2021-08-01)

I'm testing v0.21.1 on linux. I create a new blank wallet with: bitcoin-cli createwallet "my_wallet" false true
But when I try to create a new address with bitcoin-cli getnewaddress I get the following error:
error code: -4
error message:
Error: This wallet has no available keys

What am I doing wrong? Thanks in advance :-)

**Tags:** bitcoin-core, bitcoin-cli


---

## 0 answers

