0

If you visit ethstats you see two cards named AVG NETWORK HASHRATE and AVG BLOCK TIME, How can i get them in geth?

0

Geth doesn't deliver the blockTime directly.

I've written a simple PHP script that calculates the average blockTime and difficulty: https://github.com/3lue/Average-Blocktime-Difficulty-Calculator

Maybe someone else knows how to get the average hashrate.

EDIT: I've found following post: https://ethereum.stackexchange.com/a/11382

So you should be able to calculate the average network hashrate with this formula (output in GH/s):

(difficulty / blockTime) / 1e9

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.