Query editor
WITH per_second AS (SELECT'Ethereum' AS chain,date_trunc('second', time) AS ts,approx_percentile(base_fee_per_gas / 1e9, 0.5) AS median_gweiFROM ethereum.blocksWHERE time >= current_timestamp - interval '30' dayAND base_fee_per_gas IS NOT NULLGROUP BY 1, 2UNION ALLSELECT'Base',date_trunc('second', time),approx_percentile(base_fee_per_gas / 1e9, 0.5)FROM base.blocksWHERE time >= current_timestamp - interval '30' dayAND base_fee_per_gas IS NOT NULLGROUP BY 1, 2UNION ALLSELECT 'MegaETH', date_trunc('second', time), approx_percentile(base_fee_per_gas / 1e9, 0.5)FROM megaeth.blocksWHERE time >= current_timestamp - interval '30' day AND base_fee_per_gas IS NOT NULLGROUP BY 1,2UNION ALLSELECT 'Celo', date_trunc('second', time), approx_percentile(base_fee_per_gas / 1e9, 0.5)FROM celo.blocksWHERE time >= current_timestamp - interval '30' day AND base_fee_per_gas IS NOT NULLGROUP BY 1,2UNION ALLSELECT 'Arbitrum', date_trunc('second', time), approx_percentile(base_fee_per_gas / 1e9, 0.5)FROM arbitrum.blocksWHERE time >= current_timestamp - interval '30' day AND base_fee_per_gas IS NOT NULLGROUP BY 1,2UNION ALLSELECT 'World Chain', date_trunc('second', time), approx_percentile(base_fee_per_gas / 1e9, 0.5)FROM worldchain.blocksWHERE time >= current_timestamp - interval '30' day AND base_fee_per_gas IS NOT NULLGROUP BY 1,2UNION ALLSELECT 'Optimism', date_trunc('second', time), approx_percentile(base_fee_per_gas / 1e9, 0.5)FROM optimism.blocksWHERE time >= current_timestamp - interval '30' day AND base_fee_per_gas IS NOT NULLGROUP BY 1,2UNION ALLSELECT 'Unichain', date_trunc('second', time), approx_percentile(base_fee_per_gas / 1e9, 0.5)