Skip to main content

generate

Command#

pacprotocol-cli generate nblocks ( maxtries )

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

Arguments#

nblocks *#

(numeric, required)

How many blocks are generated immediately.

maxtries#

(numeric, optional)

How many iterations to try (default = 1000000).

Examples#

Generate 11 blocks

pacprotocol-cli generate 11

Result#

[ blockhashes ] #(array) hashes of blocks generated

Running following help command

pacprotocol-cli help generate

Will produce following output:

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
> pacprotocol-cli generate 11