user112354: I need to create an encrypted blank wallet, and for this purpose I need to furnish
bitcoin-cli --testnet createwallet testwallet with two more optional arguments.
Let the passphrase be "k3YQN3JOtyHMlRCg4v4". How do I do this?
I came across this example from bitcoin-cli help createwallet:
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createwallet", "params": ["testwallet"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Whereas I've used curl before for scraping I would rather avoid using just creating a wallet?
I have already figured out a way of how to do this using -named:
/home/jerzy/bitcoin/bin/bitcoin-cli --testnet -named createwallet wallet_name=testwtwo blank=true passphrase=k3YQN3JOtyHMlRCg4v4

Now, I would like to do the same by passing the optional argumets in JSON.
I've tried all the following but to no avail:
/home/jerzy/bitcoin/bin/bitcoin-cli --testnet createwallet testwtwo '{ "blank":"true", "passphrase":"k3YQN3JOtyHMlRCg4v4" }'
error code: -1
error message:
JSON value is not a boolean as expected

/home/jerzy/bitcoin/bin/bitcoin-cli --testnet createwallet testwtwo '{ "blank":true, "passphrase":"k3YQN3JOtyHMlRCg4v4" }'
error code: -1
error message:
JSON value is not a boolean as expected

/home/jerzy/bitcoin/bin/bitcoin-cli --testnet createwallet testwtwo '{ blank : true, passphrase : "k3YQN3JOtyHMlRCg4v4" }'
error: Error parsing JSON: { blank : true, passphrase : "k3YQN3JOtyHMlRCg4v4" }


How do I do this?

user-1: 
bitcoin-cli --testnet -named createwallet wallet_name=testwtwo blank=true passphrase=k3YQN3JOtyHMlRCg4v4

Doing same thing without using -named
bitcoin-cli -testnet createwallet testwtwo false true k3YQN3JOtyHMlRCg4v4


112354: <p>I need to create an encrypted blank wallet, and for this purpose I need to furnish
<code>bitcoin-cli --testnet createwallet testwallet</code> with two more optional arguments.
Let the passphrase be &quot;k3YQN3JOtyHMlRCg4v4&quot;. How do I do this?</p>
<p>I came across this example from <code>bitcoin-cli help createwallet</code>:</p>
<pre><code>curl --user myusername --data-binary '{&quot;jsonrpc&quot;: &quot;1.0&quot;, &quot;id&quot;: &quot;curltest&quot;, &quot;method&quot;: &quot;createwallet&quot;, &quot;params&quot;: [&quot;testwallet&quot;]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
</code></pre>
<p>Whereas I've used <code>curl</code> before for scraping I would rather avoid using just creating a wallet?</p>
<p>I have already figured out a way of how to do this using -named:</p>
<pre><code>/home/jerzy/bitcoin/bin/bitcoin-cli --testnet -named createwallet wallet_name=testwtwo blank=true passphrase=k3YQN3JOtyHMlRCg4v4
</code></pre>
<p>Now, I would like to do the same by passing the optional argumets in JSON.
I've tried all the following but to no avail:</p>
<pre><code>/home/jerzy/bitcoin/bin/bitcoin-cli --testnet createwallet testwtwo '{ &quot;blank&quot;:&quot;true&quot;, &quot;passphrase&quot;:&quot;k3YQN3JOtyHMlRCg4v4&quot; }'
error code: -1
error message:
JSON value is not a boolean as expected

/home/jerzy/bitcoin/bin/bitcoin-cli --testnet createwallet testwtwo '{ &quot;blank&quot;:true, &quot;passphrase&quot;:&quot;k3YQN3JOtyHMlRCg4v4&quot; }'
error code: -1
error message:
JSON value is not a boolean as expected

/home/jerzy/bitcoin/bin/bitcoin-cli --testnet createwallet testwtwo '{ blank : true, passphrase : &quot;k3YQN3JOtyHMlRCg4v4&quot; }'
error: Error parsing JSON: { blank : true, passphrase : &quot;k3YQN3JOtyHMlRCg4v4&quot; }

</code></pre>
<p>How do I do this?</p>
 -1: <blockquote>
<p>bitcoin-cli --testnet -named createwallet wallet_name=testwtwo blank=true passphrase=k3YQN3JOtyHMlRCg4v4</p>
</blockquote>
<p>Doing same thing without using <code>-named</code></p>
<pre><code>bitcoin-cli -testnet createwallet testwtwo false true k3YQN3JOtyHMlRCg4v4
</code></pre>
