getgenerate - Hush 3.10.3 RPC

getgenerate

Return if the server is set to mine coins or not. The default is false.
It is set with the command line argument -gen (or HUSH3.conf setting gen).
It can also be set with the setgenerate call.

Result
{
  "generate": true|false     (boolean) If mining is on or off (see setgenerate)
  "numthreads": n            (numeric) The processor limit for mining. (see setgenerate)
}

Examples:
> hush-cli getgenerate 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:18031/


Maintained by The Hush Developers

Welcome to the Hush full node RPC developer documentation!!! You finally made it.