getdifficulty

Returns the proof-of-work difficulty as a multiple of the minimum difficulty.

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"getdifficulty","params":[]}'

Response

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