New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image
dgb

DGB

POST

GET

chevron-right

Last updated on January 1, 1970

2 min read

Method getmininginfo undefined ()
connect with JSON-RPC protocol

getmininginfo

info-circle-fill

Returns a json object containing mining-related information.

Parameters

-

Request

curl --location --request POST 'https://dgb.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",
    "result": {
        "blocks": 13645716,
        "chain": "main",
        "currentblockweight": 4904,
        "difficulty": 111625.4745815573,
        "difficulty_odo": 758803.473162248,
        "difficulty_qubit": 4838516.667810841,
        "difficulty_scrypt": 111625.4745815573,
        "difficulty_sha256d": 1606081960.042681,
        "difficulty_skein": 8308860.184994861,
        "errors": "",
        "pooledtx": 0,
        "pow_algo": "scrypt",
        "pow_algo_id": 1,
        "warnings": ""
    }
}
banner icon

Start Building with GetBlock RPCs for Free