Query editor
SELECTCOUNT(t.hash) AS total_transactions,SUM(t.gas_used) AS total_gas_used,SUM((t.gas_used * (t.gas_price - COALESCE(t.priority_fee_per_gas, 0))) / 1e18) AS total_base_fee_eth,SUM((t.gas_used * COALESCE(t.priority_fee_per_gas, 0)) / 1e18) AS total_priority_fee_eth,SUM((t.gas_used * t.gas_price) / 1e18) AS total_fee_eth,SUM((t.gas_used * (t.gas_price - COALESCE(t.priority_fee_per_gas, 0))) / 1e18 * p.price) AS total_base_fee_usd,SUM((t.gas_used * COALESCE(t.priority_fee_per_gas, 0)) / 1e18 * p.price) AS total_priority_fee_usd,SUM((t.gas_used * t.gas_price) / 1e18 * p.price) AS total_fee_usdFROM ethereum.transactions tTABLESAMPLE SYSTEM (100)JOIN prices.hour pON p.contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 -- WETHAND p.blockchain = 'ethereum'AND DATE_TRUNC('hour', t.block_time) = p.timestampWHEREt.block_time >= CURRENT_TIMESTAMP - INTERVAL '1' DAY