DGB
POST
GET
Last updated on January 1, 1970
2 min read
Method getmininginfo undefined ()
connect with JSON-RPC protocol
getmininginfo
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": ""
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }