dcr

Decred (DCR)

Method: POST getmininginfo

dropdown
POST

getmininginfo

Returns a JSON object containing mining-related information.

Parameters

-

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getmininginfo",
"params": [],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blocks": 590054,
        "currentblocksize": 3367,
        "currentblocktx": 10,
        "difficulty": 17582242224.688896,
        "errors": "",
        "generate": false,
        "genproclimit": 0,
        "hashespersec": 0,
        "networkhashps": 195802563671715400,
        "pooledtx": 21,
        "stakedifficulty": 19542926468,
        "testnet": false
    }
}