Skip to main content

getdifficulty

Overview

The 'getdifficulty' RPC Method returns the proof-of-work difficulty as a multiple of the minimum difficulty.

Request

curl --location 'https://bitcoin-mainnet.node.coinapi.io' \
--header 'x-coinapi-key: '73034021-THIS-IS-SAMPLE-KEY' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--data '{"jsonrpc":"2.0","method":"getdifficulty","params": [],"id":1}'

Request Parameters

This method does not require any parameters.

Response

{
"result": 57321508229258.04,
"error": null,
"id": 1
}

result: The proof-of-work difficulty, represented as a multiple of the minimum difficulty. error: A message describing the error, if any occurs during the process.