Query editor
-- THE FEE MULTIPLE - how many times today's fees would be needed to replace the block subsidy.-- Trailing 30 days, so a single high-fee day cannot swing it. bitcoin.blocks only: no price, no API.with d as (select date_trunc('day', time) as day,sum(mint_reward) as subsidy, sum(total_fees) as feesfrom bitcoin.blocksgroup by 1),w as (select day,sum(subsidy) over (order by day rows between 29 preceding and current row) as subsidy_30d,sum(fees) over (order by day rows between 29 preceding and current row) as fees_30dfrom d)select round(subsidy_30d / nullif(fees_30d, 0), 1) as "x today's fees"from wwhere day = (select max(day) from d where day < date_trunc('day', now()))