getmininginfo
Command#
pacprotocol-cli getmininginfo
Returns a json object containing mining-related information.
Examples#
pacprotocol-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:1111/
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
"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)
"warnings": "..." #(string) any network and blockchain warnings
}
Running following help command
pacprotocol-cli help getmininginfo
Will produce following output:
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
"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)
"warnings": "..." (string) any network and blockchain warnings
}
Examples:
> pacprotocol-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:1111/