curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getmininginfo",
"params": "<any>",
"id": 1
}'
{
"result": {},
"error": {},
"id": 123
}
curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getmininginfo",
"params": "<any>",
"id": 1
}'
{
"result": {},
"error": {},
"id": 123
}
getmininginfo
method provides a variety of mining-related information from the node, such as the current number of blocks, the difficulty, the estimated network hash rate, and other important data for miners.
result
— an object containing various pieces of mining-related information:
blocks
— the current number of blocks processed by the node.difficulty
— the current difficulty target being used by the node.networkhashps
— the estimated network hashes per second based on the last n blocks.pooledtx
— the number of transactions in the mempool.chain
— the current blockchain (e.g., “main”, “test”, “regtest”).error
— an object containing an error message if an error occurred, otherwise null
.
id
— an integer representing the ID of the request.
getmininginfo
method is crucial for miners and mining pool operators to understand the current state of the network. It provides essential data for making decisions about mining difficulty adjustments and estimating the network’s total hash rate.Various mining-related information.
The response is of type object
.
Was this page helpful?