Query editor
with optimism as (select day, sum(tx_fee) as optimism_tx_fees from(select et.hash, date_trunc('day',et.block_time) as day,(casewhen eb.base_fee_per_gas/POWER(10,18)+et.max_priority_fee_per_gas/POWER(10,18) > et.max_fee_per_gas/POWER(10,18)then max_fee_per_gas/POWER(10,18)*et.gas_used*p.priceelse (eb.base_fee_per_gas/POWER(10,18)+et.max_priority_fee_per_gas/POWER(10,18))*et.gas_used*p.priceend) as tx_feefrom ethereum.transactions etleft join ethereum.blocks ebon et.block_number = eb.numberleft join (select minute, price from prices.usd where blockchain = 'ethereum' and symbol = 'WETH') pon date_trunc('minute',et.block_time) = p.minutewhere "to" in (0x4BF681894abEc828B212C906082B444Ceb2f6cf6,0x5E4e65926BA27467555EB562121fac00D24E9dD2,0xBe5dAb4A2e9cd0F27300dB4aB94BeE3A233AEB19,0xdfe97868233d1aa22e815a266982f2cf17685a27,0xFF00000000000000000000000000000000000010)and date_trunc('day', block_time) > cast('2021-01-01 00:00' as timestamp(3))) optimismgroup by 1order by 1 desc),arbitrumone as (select day, sum(tx_fee) as arbitrumone_tx_fees from(select et.hash, date_trunc('day',et.block_time) as day,(casewhen eb.base_fee_per_gas/POWER(10,18)+et.max_priority_fee_per_gas/POWER(10,18) > et.max_fee_per_gas/POWER(10,18)then max_fee_per_gas/POWER(10,18)*et.gas_used*p.priceelse (eb.base_fee_per_gas/POWER(10,18)+et.max_priority_fee_per_gas/POWER(10,18))*et.gas_used*p.priceend) as tx_feefrom ethereum.transactions etleft join ethereum.blocks ebon et.block_number = eb.numberleft join (select minute, price from prices.usd where blockchain = 'ethereum' and symbol = 'WETH') pon date_trunc('minute',et.block_time) = p.minutewhere "to" in (0x4c6f947Ae67F572afa4ae0730947DE7C874F95Ef,0x51de512aa5dfb02143a91c6f772261623ae64564,0x1c479675ad559DC151F6Ec7ed3FbF8ceE79582B6,0x72Ce9c846789fdB6fC1f34aC4AD25Dd9ef7031ef)and date_trunc('day', block_time) > cast('2021-01-01 00:00' as timestamp(3))) arbitrumonegroup by 1order by 1 desc),dydx as (select day, sum(tx_fee) as dydx_tx_fees from(select et.hash, date_trunc('day',et.block_time) as day,(case