generatetoaddress JSON-RPC command
generatetoaddress nblocks "address" ( maxtries )
Mine blocks immediately to a specified address (before the RPC call returns).
1. nblocks (numeric, required) How many blocks are generated immediately. 2. address (string, required) The address to send the newly generated bitcoin to. 3. maxtries (numeric, optional, default=1000000) How many iterations to try.
[ blockhashes ] (array) hashes of blocks generated
Generate 11 blocks to myaddress > bitcoin-cli generatetoaddress 11 "myaddress"
Bitcoin Cash Node Daemon version v23.1.1-f21426b
Documentation on docs.bitcoincashnode.org reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.