Mining RPCs
getmininginfo
Returns a json object containing mining-related information.
Method: POST
https://zen.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmininginfo",
"params": []
}
Example response: 200
{
"result": {
"blocks": 1556323,
"currentblocksize": 0,
"currentblocktx": 0,
"currentblockcert": 0,
"difficulty": 39474912.12910464,
"errors": "",
"genproclimit": -1,
"localsolps": 0,
"networksolps": 2069760357,
"networkhashps": 2069760357,
"pooledtx": 0,
"pooledcert": 0,
"testnet": false,
"chain": "main",
"generate": true
},
"error": null,
"id": "curltest"
}
getnetworkhashps
Returns the estimated network hashes per second based on the last n blocks.
Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.
Pass in [height] to estimate the network speed at the time when a certain block was found.
Method: POST
https://zen.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getnetworkhashps",
"params": []
}
Example response: 200
{
"result": 2109905590,
"error": null,
"id": "curltest"
}
Last updated