Mining RPCs

getmininginfo

Returns a json object containing mining-related information.

Method: POST

https://dgb.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": {
        "blocks": 19117860,
        "currentblockweight": 0,
        "pow_algo_id": 1,
        "pow_algo": "scrypt",
        "difficulty": 291074.5587360502,
        "difficulty_sha256d": 733758988.4889768,
        "difficulty_scrypt": 291074.5587360502,
        "difficulty_skein": 4147941.489266986,
        "difficulty_qubit": 1505144.964907165,
        "difficulty_odo": 96603.65190400144,
        "errors": "",
        "pooledtx": 1,
        "chain": "main",
        "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://dgb.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": 9.65931840129975e+16,
    "error": null,
    "id": "curltest"
}

Last updated