Mining RPCs
getmininginfo
Returns a json object containing mining-related information.
Method: POST
https://dcr.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmininginfo",
"params": []
}
Example response: 200
{
"jsonrpc": "1.0",
"result": {
"blocks": 861357,
"currentblocksize": 25987,
"currentblocktx": 13,
"difficulty": 1005513.52356635,
"stakedifficulty": 23002744151,
"errors": "",
"generate": false,
"genproclimit": 0,
"hashespersec": 0,
"networkhashps": 15618872050824,
"pooledtx": 21,
"testnet": false
},
"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://dcr.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getnetworkhashps",
"params": []
}
Example response: 200
{
"jsonrpc": "1.0",
"result": 15618872050824,
"error": null,
"id": "curltest"
}
Last updated