Parameters
Unique identifier for a blockchain network.
Request identifier used to match responses.
JSON-RPC version.
JSON-RPC method name.
Returns
Current network difficulty.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=bitcoin-testnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getdifficulty",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": 0
}
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=bitcoin-testnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getdifficulty",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": 0
}
Was this page helpful?