10 Compute Units.
Blockchain RPCs
getdifficulty
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
This method will use
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
10 Compute Units.
| Name | Type | Description |
|---|---|---|
| n | numeric | the proof-of-work difficulty as a multiple of the minimum difficulty. |
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getdifficulty",
"params": []
}'
curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getdifficulty",
"params": []
}'