Query editor
with stocks AS (SELECT DISTINCToutput_0 AS contract_addressFROM robinhood_robinhood.stockfactory_call_deploy),trx as (select evt_tx_hashfrom (selectevt_tx_hashfrom erc20_robinhood.evt_transfer rjoin stocks son r.contract_address = s.contract_addressunionselectevt_tx_hashFROM erc20_robinhood.evt_Approval ajoin stocks son a.contract_address = s.contract_address)group by 1),tx_fee_stats as(selectblock_time,block_date,hash,effective_gas_price/1e18 * gas_used as tx_fee_eth,effective_gas_price/1e18 * (gas_used- gas_used_for_l1) as l2_tx_fee_eth,gas_used,(gas_used- gas_used_for_l1) as l2_gas_usedfrom robinhood.transactions rjoin trx ton t.evt_tx_hash = hashwhere r.block_date >= date '2026-06-30'),tx_fee_usd as (selects.*,tx_fee_eth * price as tx_fee_usd,l2_tx_fee_eth * price as l2_tx_fee_usdfrom tx_fee_stats sleft join (select timestamp as minute,avg(price) as pricefrom prices.minutewhere blockchain = 'ethereum'and contract_address = 0x0000000000000000000000000000000000000000and timestamp >= date '2026-06-30'