⚡ We welcome businesses to test our enterprise-grade service

dgb
DigiByte (DGB)

Method: POST getnetworkhashps

dropdown

方法 RPC getnetworkhashps 例如 DigiByte (DGB)

POST getnetworkhashps

根据最后的n块返回每秒估计的网络哈希。

传递[块]覆盖块,-1指定自上次更改以来。

传递[高度]以估计找到某个块时的网络速度。

Parameters

nblocks - 数字,可选,默认值= 120

自上次难度更改以来块的块数,或-1的块。

height - 数字,可选,默认值= -1

在给定高度时进行估计。

Request

curl --location --request POST 'https://dgb.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getnetworkhashps",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": 1.650912516652868e+17
}