Skip to main content

generate

RPC help captured from Yerbas Core 4.0.1.4 (f0e2dde).

Use ./yerbas-cli help generate on your node for help. In the GUI console omit yerbas-cli. HTTP examples use mainnet RPC port 15419; network-specific defaults and availability can differ.

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) How many iterations to try (default = 1000000).

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

Examples:

Generate 11 blocks
> yerbas-cli generate 11