DASH
POST
GET
Last updated on January 1, 1970
1 min read
Method getnetworkhashps undefined ()
connect with JSON-RPC protocol
getnetworkhashps
Returns the estimated network hashes per second based on the last nblocks.
Parameters
blocks
- number (int)
Optional.
The number of blocks to average together for calculating the estimated hashes per second.
Default is 120. Use -1 to average all blocks produced since the last difficulty change.
height
- number (int)
Optional.
The height of the last block to use for calculating the average. Defaults to -1 for the highest-height block on the local best block chain.
If the specified height is higher than the highest block on the local best block chain, it will be interpreted the same as -1
Request
curl --location --request POST 'https://dash.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": 2972518180727094
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }