Query editor
with price as (select pricefrom prices.usd_latestwhere blockchain is nulland symbol = 'ETH' -- find the native token price)SELECTdate_trunc('day', block_time) as week, avg((l1_fee + gas_price * gas_used) * (select price from price) /1e18) as avg_txn_cost, APPROX_PERCENTILE((l1_fee + gas_price * gas_used)/1e18 * (select price from price), 0.5) as median_txn_costFROM tac.transactionsWHERE gas_price > 0 -- remove system txnsand block_time < date_trunc('day', NOW())and block_time >= date('2025-06-11')GROUP BY 1