Mining RPCs

getmininginfo

Returns a json object containing mining-related information.

Method: POST

https://grs.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getmininginfo",
    "params": []
}

Example response: 200

{
    "result": {
        "blocks": 5575493,
        "bits": "1a20f300",
        "difficulty": 509176.2608180201,
        "target": "00000000000020f3000000000000000000000000000000000000000000000000",
        "networkhashps": 32477339441613.64,
        "pooledtx": 0,
        "chain": "main",
        "next": {
            "height": 5575494,
            "bits": "1a1fd9fe",
            "difficulty": 526723.8012055061,
            "target": "0000000000001fd9fe0000000000000000000000000000000000000000000000"
        },
        "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://grs.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getnetworkhashps",
    "params": []
}

Example response: 200

{
    "result": 44900538104375.61,
    "error": null,
    "id": "curltest"
}

Last updated