[Request]: Add `estimatedhashrate` and `difficulty` to /consensus/blocks API
Due to the code maintenance status of the /explorer
module, developers seeking to build blockchain explorers are being suggested to use /consensus/blocks
instead.
I am currently attempting to migrate my explorer (SiaStats Navigator) to index the blockchain from /consensus/blocks calls. While the data returned is not as rich as the explorer, I am yet being able to calculate all the metadata and find the parent unlockhashes of the transactions. There is one deadlock I am trapped in, however: I don't know how to calculate the estimatedhashrate
and difficulty
of each block. Would it be possible to include these two fields on the /consensus/blocks
result?
Thank you very much in advance