文档
定价GitHub控制台

Zcash

getnetworkhashps8 额度

返回估算的全网每秒哈希数

网络: zcash

参数

名称类型描述
nblocksnumber用于求平均的区块数。默认为 120;-1 表示自上次难度调整以来。 (可选)
heightnumber用于估算的区块高度。默认为 -1(当前链顶端)。 (可选)

返回值

类型

number

估算的全网每秒哈希数。

代码示例

curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getnetworkhashps",
  "params": [
    120,
    -1
  ]
}'