Query editor
-- total blocks + event markers (Fusaka + BPO1 + BPO2)WITHparams AS (SELECT-- Ethereum Foundation: Fusaka activation = 2025-12-03 21:49:11 UTCfrom_unixtime(1764798551) AS fusaka_time_utc,-- Ethereum Foundation: BPO1 activation = 2025-12-09 14:21:11 UTC (unix 1765290071)from_unixtime(1765290071) AS bpo1_time_utc,-- BPO2 activation = 2026-01-07 01:01:11 UTCfrom_unixtime(1767747671) AS bpo2_time_utc,-- Make the marker visible even when you plot hundreds of thousands of points:-- +/- 200 blocks ~= +/- 40 minutes (12s/block). Tune as you like.CAST(200 AS BIGINT) AS marker_span_blocks),last_n_blocks AS (SELECTnumber AS block_number,time,base_fee_per_gas,gas_usedFROM ethereum.blocksORDER BY number DESCOFFSET 500LIMIT {{block_count}}),-- since ethereum.blobs is organized by blobs, not blocks, we need to make them ordered by blockssingle_block_blob AS (SELECTblock_number,SUM(CAST(blob_gas_used AS DECIMAL(38,0))) AS blob_gas_used,MAX(CAST(blob_base_fee AS DECIMAL(38,0))) AS blob_base_fee_wei_per_blob_gasFROM ethereum.blobsWHERE block_number IN (SELECT block_number FROM last_n_blocks)GROUP BY block_number),data AS (SELECTb.block_number,b.time,COALESCE(bb.blob_gas_used, CAST(0 AS DECIMAL(38,0))) AS blob_gas_used,COALESCE(bb.blob_base_fee_wei_per_blob_gas, CAST(0 AS DECIMAL(38,0))) AS blob_base_fee_wei_per_blob_gas,-- EIP-4844 burned (wei)CAST(COALESCE(bb.blob_gas_used, CAST(0 AS DECIMAL(38,0))) *COALESCE(bb.blob_base_fee_wei_per_blob_gas, CAST(0 AS DECIMAL(38,0)))AS DECIMAL(38,0)) AS eip4844_burned_wei,-- EIP-4844 burned (eth)CAST(COALESCE(bb.blob_gas_used, CAST(0 AS DECIMAL(38,0))) *COALESCE(bb.blob_base_fee_wei_per_blob_gas, CAST(0 AS DECIMAL(38,0)))