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

banner image
bch

BCH

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://bch.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": 684635,
        "chain": "main",
        "currentblocksize": 1999960,
        "currentblocktx": 6269,
        "difficulty": 303698825886.4642,
        "networkhashps": 2.333876557488516e+18,
        "pooledtx": 6334,
        "warnings": "Warning: This version of Bitcoin Cash Node is old and may fall out of network consensus in 22 day(s). Please upgrade, or add expire=0 to your configuration file if you want to continue running this version. If you do nothing, the software will gracefully degrade by limiting its functionality in 22 day(s)."
    }
}
banner icon

Start Building with GetBlock RPCs for Free