Query editor
-- Robinhood Chain: daily average and median transaction cost.---- ArbOS per-block internal txs (to 0x..0a4b05) are excluded -- sequencer overhead-- carrying no fee.---- NULL-SAFE PREDICATE: `"to" <> 0x..0a4b05` on its own evaluates to NULL for the-- ~175,000 contract-creation txs where `to` IS NULL, silently dropping them. Those-- deployments cost ~9.5x the average tx, so excluding them understated average cost-- by ~0.26%. The explicit IS NULL branch keeps them.---- Prices are LEFT JOINed: a day with no WETH price yields NULL USD rather than-- vanishing from the chart, and the ETH-denominated columns survive regardless.---- Ordered newest-first so counter visualisations read row 1 as "latest";-- time-series charts sort chronologically on the x axis regardless.WITH eth AS (SELECTcast(timestamp AS date) AS day,avg(price) AS eth_usdFROM prices.dayWHERE blockchain = 'ethereum'AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 -- WETHAND timestamp >= TIMESTAMP '2026-04-30 00:00:00'GROUP BY 1),fees AS (SELECTblock_date AS day,avg(cast(gas_used AS double) * cast(effective_gas_price AS double) / 1e18) AS avg_fee_eth,approx_percentile(cast(gas_used AS double) * cast(effective_gas_price AS double) / 1e18, 0.5) AS median_fee_eth,avg(cast(effective_gas_price AS double) / 1e9) AS avg_gas_price_gwei,count(*) AS fee_paying_txsFROM robinhood.transactionsWHERE ("to" IS NULL OR "to" <> 0x00000000000000000000000000000000000a4b05)GROUP BY 1)SELECTf.day,f.avg_fee_eth * e.eth_usd AS avg_fee_usd,f.median_fee_eth * e.eth_usd AS median_fee_usd,f.avg_gas_price_gwei,f.avg_fee_eth,f.median_fee_eth,f.fee_paying_txsFROM fees fLEFT JOIN eth e ON e.day = f.dayORDER BY f.day DESC