generatetodescriptor
generatetodescriptor num_blocks “descriptor” ( maxtries )
Mine blocks immediately to a specified descriptor (before the RPC call returns)
Arguments:
- num_blocks (numeric, required) How many blocks are generated immediately.
- descriptor (string, required) The descriptor to send the newly generated bitcoin to.
- maxtries (numeric, optional, default=1000000) How many iterations to try.
Result: [ (json array) hashes of blocks generated “hex”, (string) blockhash … ]
Examples:
Generate 11 blocks to mydesc
bitcoin-cli generatetodescriptor 11 “mydesc”