POST
https://nd-202-842-353.p2pify.com
/
788f110831fe13808302bd79796d55e8
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
}

The getdifficulty method retrieves the current network difficulty, which is a measure of how difficult it is to find a new block on the blockchain.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • None

Response

  • 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.

Use case

The 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.

Body

application/json

Response

200 - application/json

The current network difficulty

The response is of type object.