generate

generating

v0.11.2

generate numblocks

Mine blocks immediately (before the RPC call returns)

Note: this function can only be used on the regtest network

Arguments:
1. numblocks (numeric) How many blocks are generated immediately.

Result
[ blockhashes ] (array) hashes of blocks generated

Examples:

Generate 11 blocks
> bitcoin-cli generate 11
Don't trust. Verify. Docs extracted from src/rpcmining.cpp#L116-L130.