# Getnetworkhashps

## getnetworkhashps

> Returns the estimated network hashes per second (hash rate) based on the last \`nblocks\` blocks.\
> This provides an estimate of the total computational power securing the network.<br>

```json
{"openapi":"3.0.0","info":{"title":"BlockBook RES-API","version":"1.0.0"},"servers":[{"url":"https://firo.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}},"schemas":{"RpcRequest":{"type":"object","required":["jsonrpc","id","method","params"],"properties":{"jsonrpc":{"type":"string","description":"The JSON-RPC protocol version (always \"1.0\")"},"id":{"type":"string","description":"The identifier for the request"},"method":{"type":"string","enum":["getnetworkhashps"],"description":"The name of the RPC method"},"params":{"type":"array","description":"Optional parameters:\n1. `nblocks` (integer) — The number of blocks to average over. Default is 120.\n2. `height` (integer) — Use the block at this height instead of the current tip. Use -1 for the tip.\n","items":{"oneOf":[{"type":"integer"}]}}}},"GetNetworkHashpsResponse":{"type":"object","properties":{"result":{"type":"number","format":"double","description":"Estimated network hash rate in hashes per second"},"error":{"type":"object","nullable":true,"description":"Null if successful, otherwise contains error information"},"id":{"type":"string","description":"The ID of the request"}}}}},"paths":{"/":{"post":{"tags":["getnetworkhashps"],"summary":"getnetworkhashps","description":"Returns the estimated network hashes per second (hash rate) based on the last `nblocks` blocks.\nThis provides an estimate of the total computational power securing the network.\n","operationId":"getnetworkhashps","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RpcRequest"}}}},"responses":{"200":{"description":"Hash rate retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNetworkHashpsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"string"}}}}}}}}}
```
