getnetworkhashps RPC returns the estimated current or historical network hashes per second based on the last n blocks.
Parameter #1—number of blocks to average
(0 or 1)
|The number of blocks to average together for calculating the estimated hashes per second. Default is
Parameter #2—block height
(0 or 1)
|The height of the last block to use for calculating the average. Defaults to
Result—estimated hashes per second
|The estimated number of hashes per second based on the parameters provided. May be 0 (for Height=
Get the average hashes per second for all the blocks since the last difficulty change before block 227255.
pai-cli -testnet getnetworkhashps -1 227255
GetDifficulty: returns the proof-of-work difficulty as a multiple of the minimum difficulty.
GetBlock: gets a block with a particular header hash from the local block database either as a JSON object or as a serialized block.