Zcash
getnetworkhashps8 额度
返回估算的全网每秒哈希数
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| nblocks | number | 用于求平均的区块数。默认为 120;-1 表示自上次难度调整以来。 (可选) |
| height | number | 用于估算的区块高度。默认为 -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
]
}'