Query editor
select day,avg(average_block_time) over (ORDER BY day ROWS BETWEEN 13 PRECEDING AND CURRENT ROW) as average_block_time_14ma,avg(difficulty) over (ORDER BY day ROWS BETWEEN 13 PRECEDING AND CURRENT ROW) as difficulty_14ma,--- Switching h/s to eh/s and 14D MAavg(hash_rate/1e18) over (ORDER BY day ROWS BETWEEN 13 PRECEDING AND CURRENT ROW) as hash_rate_14ma from (select date_trunc('day',time) as day, avg(difficulty) as difficulty, avg(block_time) as average_block_time,--- 1/2^32 is the Probabiliy of any hash attempt leads to a valid block--- Source https://bitcoin.stackexchange.com/questions/113855/where-does-this-232-come-from-- Estimation of Hash Rate = Difficulty * Probability / Block Timeavg(difficulty)*power(2,32)/avg(block_time*60) as hash_ratefrom (select distinct time, height, difficulty, date_diff('minute',lag(time,1) over (order by height asc), time) as block_timefrom bitcoin.blocks)awhere date_trunc('day',time)>= date_trunc('day',cast(date('2020-01-01') as timestamp))group by 1)a