Query editor
with txs as (select distinct from_hex(h) as tx_hash from query_8956155 where typ = 'arb' and pc in (1, 2, 16, 32)),meta as (select t.hash as tx_hash, t."from" as tx_from, t."to" as tx_to, t.block_time, t.block_number,cast(t.gas_used as double) * cast(t.gas_price as double) / 1e18 as gas_eth, b.minerfrom ethereum.transactions t join ethereum.blocks b on b.number = t.block_number and b.date between date '2026-05-30' and date '2026-08-22'where t.block_date between date '2026-05-30' and date '2026-08-22' and t.hash in (select tx_hash from txs)),tips as (select x.tx_hash, sum(cast(x.amount_raw as double)) / 1e18 as tip_ethfrom tokens.transfers x join meta m on m.tx_hash = x.tx_hashwhere x.blockchain = 'ethereum' and x.block_month between date '2026-05-01' and date '2026-08-01'and x.block_date between date '2026-05-30' and date '2026-08-22'and x.contract_address in (0x0000000000000000000000000000000000000000, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)and x."to" = m.miner and x."from" in (m.tx_from, m.tx_to)group by 1),px as (select timestamp, price from prices.minute where blockchain = 'ethereum' and contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2and timestamp >= timestamp '2026-05-30' and timestamp < timestamp '2026-08-23')select to_hex(m.tx_hash) as h, coalesce(tp.tip_eth, 0) * px.price as tip_usd, m.gas_eth * px.price as gas_usdfrom meta m left join tips tp on tp.tx_hash = m.tx_hash left join px on px.timestamp = date_trunc('minute', m.block_time)