Query editor
-- results:-- total_fee = 4029.488469681644-- total_burn = 723.3863157516577-- rewards: 3,306 ETH-- summary: from [October 8, 2023, November 8, 2023) sandwich transactions on Ethereum burned 723.39 ETH but paid 4029.49 ETH in fees-- as a result their tips were 3,306 ETH-- MEV-Boost Rewards during that period were: 21,674 ETH-- Sandwich transactions therefore accounted for 15.2% of validator execution layer rewards.-- A little bit less actually b/c this ignores the 10% of self-built blocks.with sandwich_hashes as (selectdistinct(tx_hash) as hashfrom dex.sandwicheswhereblockchain = 'ethereum'and block_time >= cast('2023-10-08' as timestamp)and block_time < cast('2023-11-08' as timestamp)--limit 5),tx_info as (selectq2.gas_price as gas_price,q2.gas_used as gas_used,q2.priority_fee_per_gas as priority_fee_per_gas,q2.block_number as block_number,q1.hashfrom sandwich_hashes q1 JOIN ethereum.transactions q2ON q1.hash = q2.hash),blk_info as (select(q1.gas_price - q2.base_fee_per_gas) / 1e9 as tip_price,q1.gas_price as gas_price,q1.gas_used as gas_used,q1.hash as hash,q1.priority_fee_per_gas as priority_fee_per_gas,q2.base_fee_per_gas as base_feefrom tx_info q1 JOIN ethereum.blocks q2ON q1.block_number = q2.number)select--*,--hash,sum(gas_price / 1e18 * gas_used) as total_fee,sum(base_fee / 1e18 * gas_used) as total_burn--sum((gas_price - base_fee) * gas_used / 1e18) as tipfrom blk_info-- gas_price * gas_used / 1e18 == total fee.-- base_fee * gas_used / 1e18 == burn