<p><code>descriptors</code> is a boolean argument, so it should either be <code>true</code> or <code>false</code>. As with all RPCs, the argument is positional by default. So your command would look like</p>
<pre><code>bitcoin-cli -signet createwallet &quot;mywallet&quot; false false &quot;&quot; false true
</code></pre>
<p>You can specify that the arguments be named so you don't have to put the position correctly. In that case, you do</p>
<pre><code>bitcoin-cli -signet -named createwallet wallet_name=&quot;mywallet&quot; descriptors=true
</code></pre>

CC BY-SA 4.0
2020-11-14T15:53:44.687Z
why is `-named` necessary if passing `wallet_name=...`?
Janus Troelsen
CC BY-SA 4.0
2020-11-14T17:55:42.723Z
So that bitcoin-cli knows to interpret that as `<argname>=<arg>` instead of a single argument. Then it can pass everything into bitcoind correctly.
Ava Chow
CC BY-SA 4.0
2020-11-14T04:43:38.847Z
2020-11-14T04:43:38.847Z
Ava Chow
<p>Using Bitcoin Core from today (almost 0.21):</p>
<p>I ran <code>./configure</code>. It said <code>with sqlite = yes</code>. <code>ldd $(which bitcoind)</code> shows it is linked to <code>libsqlite3.so</code>.</p>
<p>Now, I started a signet node using <code>bitcoind -signet</code>. It has synced.</p>
<p>Now I want to create a descriptor wallet. So I tried looking in the <code>man bitcoin-wallet</code>, but it doesn't mention it.</p>
<p>I tried <code>bitcoin-cli help</code> and it lists:</p>
<pre><code>createwallet &quot;wallet_name&quot; ( disable_private_keys blank &quot;passphrase&quot; avoid_reuse descriptors load_on_startup )
</code></pre>
<p>I tried:</p>
<pre><code>$ bitcoin-cli -signet createwallet default_wallet -descriptors 
error: Error parsing JSON: -descriptors
$ bitcoin-cli -signet -descriptors createwallet default_wallet
Error parsing command line arguments: Invalid parameter -descriptors
</code></pre>
<p>How do I create a descriptor wallet?</p>

CC BY-SA 4.0
2020-11-13T23:06:35.713Z
`descriptors` is not a command-line option to `bitcoin-cli`, it's a boolean argument to the "createwallet" RPC. It should be "true" or "false.
Pieter Wuille
<wallet><output-script-descriptors>
How do I create a descriptor wallet?
Janus Troelsen
# How do I create a descriptor wallet?

(Asked by: username_0 on 2020-11-13)

Using Bitcoin Core from today (almost 0.21):

I ran `./configure`. It said `with sqlite = yes`. `ldd $(which bitcoind)` shows it is linked to `libsqlite3.so`.

Now, I started a signet node using `bitcoind -signet`. It has synced.

Now I want to create a descriptor wallet. So I tried looking in the `man bitcoin-wallet`, but it doesn't mention it.

I tried `bitcoin-cli help` and it lists:

```
createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse descriptors load_on_startup )

```

I tried:

```
$ bitcoin-cli -signet createwallet default_wallet -descriptors 
error: Error parsing JSON: -descriptors
$ bitcoin-cli -signet -descriptors createwallet default_wallet
Error parsing command line arguments: Invalid parameter -descriptors

```

How do I create a descriptor wallet?

**Tags:** wallet, output-script-descriptors

> **Comments:**
> **username_1**: `descriptors` is not a command-line option to `bitcoin-cli`, it's a boolean argument to the "createwallet" RPC. It should be "true" or "false.  

---

## 1 answers

### Answer by username_2 on 2020-11-14. Score: 4 | Accepted answer

`descriptors` is a boolean argument, so it should either be `true` or `false`. As with all RPCs, the argument is positional by default. So your command would look like

```
bitcoin-cli -signet createwallet "mywallet" false false "" false true

```

You can specify that the arguments be named so you don't have to put the position correctly. In that case, you do

```
bitcoin-cli -signet -named createwallet wallet_name="mywallet" descriptors=true

```

> **Comments:**
> **username_0**: why is `-named` necessary if passing `wallet_name=...`?  
> **username_2**: So that bitcoin-cli knows to interpret that as `<argname>=<arg>` instead of a single argument. Then it can pass everything into bitcoind correctly.  

---

