getdifficulty
Returns the proof-of-work difficulty, as a multiple of the minimum difficulty. This method uses 80 credits from your daily balance.
Parameters
None
Returns
result: (number) - Current proof-of-work difficulty.
Request
- curl
curl https://bitcoin-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getdifficulty", "params": []}'
Response
- JSON
{
"jsonrpc": "2.0",
"id": 1,
"result": 133759191625814.6
}