Table Of Contents

Previous topic

uptime

Next topic

generatetoaddress

generate

generate nblocks ( maxtries )

Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.

Argument #1 - nblocks

Type: numeric, required

How many blocks are generated immediately.

Argument #2 - maxtries

Type: numeric, optional, default=1000000

How many iterations to try.

Result

[ blockhashes ]     (array) hashes of blocks generated

Examples

Generate 11 blocks:

bitcoin-cli generate 11