2

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?

Michael Folkson
  • 15,313
  • 3
  • 17
  • 53
Janus Troelsen
  • 897
  • 10
  • 27
  • 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 Nov 13 '20 at 23:06

1 Answers1

4

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
Ava Chow
  • 70,382
  • 5
  • 81
  • 161