Documentation exported from Bitcoin Core 0.18.0

generate (0.18.0 RPC)

blockchain

control

generating

mining

network

rawtransactions

util

wallet

zmq

generate nblocks ( maxtries )

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

Arguments:
1. nblocks     (numeric, required) How many blocks are generated immediately.
2. maxtries    (numeric, optional, default=1000000) How many iterations to try.

Result:
[ blockhashes ]     (array) hashes of blocks generated

Examples:

Generate 11 blocks
> bitcoin-cli generate 11