generatetoaddress
generatetoaddress nblocks address (maxtries)
Mine blocks immediately to a specified address (before the RPC call returns)
Arguments:
- nblocks (numeric, required) How many blocks are generated immediately.
- address (string, required) The address to send the newly generated bitcoin to.
- maxtries (numeric, optional) How many iterations to try (default = 1000000).
Result: [ blockhashes ] (array) hashes of blocks generated
Examples:
Generate 11 blocks to myaddress
bitcoin-cli generatetoaddress 11 “myaddress”