Skip to main content

generate

generate nblocks ( maxtries )

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

# Generate 11 blocks
yerbas-cli generate 11

Arguments

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

Output

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

Examples

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "generate", "params": ["11"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/