generatetoaddress nblocks address (maxtries)
Mine blocks immediately to a specified address (before the RPC call returns) Note: this function can only be used on the regtest network.
Argument #1 - nblocks¶
Type: numeric, required
How many blocks are generated immediately.
Argument #2 - address¶
Type: string, required
The address to send the newly generated unite to.
Argument #3 - maxtries¶
Type: numeric, optional
How many iterations to try (default = 1000000).
[ blockhashes ] (array) hashes of blocks generated Examples: Generate 11 blocks to myaddress > unit-e-cli generatetoaddress 11 "myaddress"