# getnetworkhashps - Dash

#### 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

```java
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getnetworkhashps",
"params": [null, null],
"id": "getblock.io"}'
```

#### Response

```java
{
    "error": null,
    "id": "getblock.io",
    "result": 2972518180727094
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getblock.io/api-reference/dash-dash/dash_getnetworkhashps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
