Mining RPCs
getmininginfo
Returns a json object containing mining-related information.
Method: POST
https://btc.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmininginfo",
"params": []
}
Example response: 200
{
"result": {
"blocks": 895188,
"bits": "17025ced",
"difficulty": 119116256505723.5,
"target": "000000000000000000025ced0000000000000000000000000000000000000000",
"networkhashps": 8.716658339958779e+20,
"pooledtx": 1735,
"chain": "main",
"next": {
"height": 895189,
"bits": "17025ced",
"difficulty": 119116256505723.5,
"target": "000000000000000000025ced0000000000000000000000000000000000000000"
},
"warnings": ""
},
"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://btc.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getnetworkhashps",
"params": []
}
Example response: 200
{
"result": 5.92528827721981e+20,
"error": null,
"id": "curltest"
}
Last updated