Skip to main content

Parameters

chainId
string
default:"bitcoin-testnet4"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getnetworkhashps"
required
JSON-RPC method name.
params
object
Parameters: [nblocks?, height?].Positional parameters for getnetworkhashps:
  • params[0]: Number of blocks to average over.
  • params[1]: Block height to estimate at (default best chain tip).

Returns

result
number
Estimated hashes per second.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=bitcoin-testnet4 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getnetworkhashps",
    "params": [
      0,
      0
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": 0
}