getnetworkhashps
Bitcoin node API
getnetworkhashps | Bitcoin
The getnetworkhashps method estimates the total hashing power of the network based on the last n blocks. Chainstack Bitcoin reference.
POST
getnetworkhashps
TheDocumentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
getnetworkhashps method estimates the total hashing power of the network based on the last n blocks. It can provide insights into the current or historical network difficulty and security.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
n(optional): The number of blocks to calculate the average hash rate over. The default is 120 blocks.height(optional): The block height at which to calculate the hash rate. The default is -1, which calculates the hash rate at the current height.
Response
result— a number representing the estimated hashes per second for the network based on the specified number of blocks.error— an object containing an error message if an error occurred, otherwisenull.id— an integer representing the ID of the request.
Use case
Thegetnetworkhashps method is useful for understanding the overall security and difficulty of the blockchain network. It helps users and analysts gauge the amount of computational power dedicated to mining and maintaining the network.Body
application/json
Last modified on May 18, 2026