setgenerate - Pastel RPC

setgenerate generate ( genproclimit )

Set 'generate' true or false to turn generation on or off.
Generation is limited to 'genproclimit' processors, -1 is unlimited.
See the getgenerate call for the current setting.

1. generate         (boolean, required) Set to true to turn on generation, off to turn off.
2. genproclimit     (numeric, optional) Set the processor limit for when generation is on. Can be -1 for unlimited.


Set the generation on with a limit of one processor
> pastel-cli setgenerate true 1

Check the setting
> pastel-cli getgenerate 

Turn off generation
> pastel-cli setgenerate false

Using json rpc
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;'

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

Generated from a mainnet node