generate - Pastel RPC

generate numblocks ( "PastelID" )

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.
2. PastelID     (string, optional) The Pastel ID (mnid) eligible to mine the block

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

Examples:
Generate 11 blocks
> pastel-cli generate 11
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "generate", "params": [11] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node