Skip to main content

getmininginfo

getmininginfo

Returns a json object containing mining-related information.

yerbas-cli getmininginfo

Output

ResultTypeDescription
"blocks"(number)The current block
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
"networkhashps": nnn, (numeric) The network hashes per second
"hashespersec": nnn, (numeric) Your current hashes per second
"algos": nnn, (string) Current solving block algos orders
"pooledtx": n (numeric) The size of the mempool
"chain": "xxxx", (string) current network name as defined in BIP70 (main, test, regtest)
}

Examples

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