generatetoaddress¶
generatetoaddress nblocks "address" ( maxtries )
Mine blocks immediately to a specified address (before the RPC call returns)
Result¶
[ blockhashes ] (array) hashes of blocks generated
Examples¶
Generate 11 blocks to myaddress:
bitcoin-cli generatetoaddress 11 "myaddress"
If you are running the bitcoin core wallet, you can get a new address to send the newly generated bitcoin to with::
bitcoin-cli getnewaddress