The generatetodescriptor RPC mines to a specified descriptor and returns the block hashes.
generatetodescriptor num_blocks "descriptor" ( maxtries )
*bitcoin-cli help generatetodescriptor
generatetodescriptor num_blocks "descriptor" ( maxtries ) Mine to a specified descriptor and return the block hashes. Arguments: 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. Result: [ (json array) hashes of blocks generated "hex", (string) blockhash ... ] Examples: Generate 11 blocks to mydesc > bitcoin-cli generatetodescriptor 11 "mydesc"