A web based interface to the Bitcoin API JSON-RPC

Command: getmininginfo

The getmininginfo RPC returns various mining-related information.

Parameters: none
Result—various mining-related information

{
	"result": {
		"blocks": 472742,
		"currentblocksize": 749881,
		"currentblockweight": 2999524,
		"currentblocktx": 859,
		"difficulty": 711697198173.7566,
		"errors": "",
		"networkhashps": 5.20499396928254e+18,
		"pooledtx": 4443,
		"chain": "main"
	},
	"error": null,
	"id": null
}
getmininginfo

Returns a json object containing mining-related information.
Result:
{
  "blocks": nnn,             (numeric) The current block
  "currentblocksize": nnn,   (numeric) The last block size
  "currentblockweight": nnn, (numeric) The last block weight
  "currentblocktx": nnn,     (numeric) The last block transaction
  "difficulty": xxx.xxxxx    (numeric) The current difficulty
  "errors": "..."            (string) Current errors
  "networkhashps": nnn,      (numeric) The network hashes per second
  "pooledtx": n              (numeric) The size of the mempool
  "chain": "xxxx",           (string) current network name as defined in BIP70 (main, test, regtest)
}

Examples:
> bitcoin-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:8332/