Bitcoin
Bitcoin
Bitcoin
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
getnetworkhashps is a Bitcoin Core JSON-RPC method that estimates how much hashing power is securing the BTC network. Because Bitcoin's hashrate cannot be measured directly, the node derives it from the difficulty and the time elapsed across a window of recent blocks, returning the result as a number of hashes per second. You control the window with the positional nblocks argument and can target a past height, making it the precise counterpart to the single estimate in getmininginfo. Send the request to https://bitcoin.therpc.io/YOUR_API_KEY to read the estimated network hashes per second straight from the chain.
nblocks (e.g. 144 blocks ≈ one day at Bitcoin's ~10-minute spacing).height to reconstruct past network conditions.nblocks = -1 to average each 2016-block retarget epoch.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | nblocks | number | Não | Number of blocks to average over; -1 = since the last difficulty change.Padrão: 120 |
| 2 | height | number | Não | Estimate at this height; -1 = current tip.Padrão: -1 |
| Tipo | Descrição |
|---|---|
| number | Estimated network hash rate in hashes per second. |
| Código | Mensagem | Causa |
|---|---|---|
-8 | Block height out of range | The requested height is negative or above the current tip height. |
nblocks window produces a noisy figure: Proof-of-Work block intervals vary widely around the ~10-minute target, so a handful of fast or slow blocks can swing the estimate. Widen the window or pass nblocks = -1 to average over the last difficulty retarget period for a steadier number.