generatetodescriptor (hidden command)

Bitcoin Core 26.0 RPC

generatetodescriptor num_blocks "descriptor" ( maxtries )

Mine to a specified descriptor and return the block hashes.


1. num_blocks    (numeric, required) How many blocks are generated.
2. descriptor    (string, required) The descriptor to send the newly generated bitcoin to.
3. maxtries      (numeric, optional, default=1000000) How many iterations to try.


[           (json array) hashes of blocks generated
  "hex",    (string) blockhash


Generate 11 blocks to mydesc
> bitcoin-cli generatetodescriptor 11 "mydesc"