getmininginfo - Divi 2.5.1 RPC

getmininginfo

Returns a json object containing mining-related information.
Result:
{
  "blocks": nnn,             (numeric) The current block
  "currentblocksize": nnn,   (numeric) The last block size
  "currentblocktx": nnn,     (numeric) The last block transaction
  "difficulty": xxx.xxxxx    (numeric) The current difficulty
  "errors": "..."          (string) Current errors
  "generate": true|false     (boolean) If the generation is on or off (see setgenerate calls)
  "genproclimit": n          (numeric) The processor limit for generation. -1 if no generation. (see setgenerate calls)
  "hashespersec": n          (numeric) The hashes per second of the generation, or 0 if no generation.
  "pooledtx": n              (numeric) The size of the mem pool
  "testnet": true|false      (boolean) If using testnet or not
  "chain": "xxxx",         (string) current network name as defined in BIP70 (main, test, regtest)
}

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


Maintained by DiviDomains; modified by: Bert Shuler;license of the docs is MIT (see divi repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet divi node



Control



Getinvalid