curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getdifficulty",
"params": "<any>",
"id": 1
}'
{
"result": 123,
"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": "getdifficulty",
"params": "<any>",
"id": 1
}'
{
"result": 123,
"error": {},
"id": 123
}
getdifficulty
method retrieves the current network difficulty, which is a measure of how difficult it is to find a new block on the blockchain.
result
— a number representing the current network difficulty.error
— an object containing an error message if an error occurred, otherwise null
.id
— an integer representing the ID of the request, used to match requests with responses.getdifficulty
method is commonly used to monitor the network’s mining difficulty level. Miners and network participants can use this information to gauge the competitiveness of mining on the network.The current network difficulty
The response is of type object
.
Was this page helpful?