user50837: 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 :-)

user-1: You are creating a blank wallet which has no keys because of the third argument which is true.


blank                   (boolean, optional, default=false) Create a blank wallet. A blank wallet has no keys or HD seed. One can be set using sethdseed.


https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/createwallet/

50837: <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>
 -1: <p>You are creating a blank wallet which has no keys because of the third argument which is <code>true</code>.</p>
<blockquote>
<ol start="3">
<li>blank                   (boolean, optional, default=false) Create a blank wallet. A blank wallet has no keys or HD seed. One can be set using sethdseed.</li>
</ol>
</blockquote>
<p><a href="https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/createwallet/" rel="nofollow noreferrer">https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/createwallet/</a></p>
