Query editor
with trx as (select evt_tx_hashfrom (selectevt_tx_hashfrom erc20_arbitrum.evt_transferwhere contract_address = 0x6fbbbd8bfb1cd3986b1d05e7861a0f62f87db74bunionselectevt_tx_hashFROM erc20_arbitrum.evt_ApprovalWHERE contract_address = 0x6fbbbd8bfb1cd3986b1d05e7861a0f62f87db74b)group by 1)select *,sum(l2_fee_usd) over (order by block_month) as total_l2_fee_usd,sum(tx_fee_usd) over (order by block_month) as total_tx_fee_usd,sum(l2_fee_eth) over (order by block_month) as total_l2_fee_eth,sum(tx_fee_eth) over (order by block_month) as total_tx_fee_ethfrom (selectblock_month,sum(tx_fee_usd - element_at(tx_fee_breakdown_usd, 'l1_fee')) AS l2_fee_usd,sum(tx_fee_usd) as tx_fee_usd,sum(tx_fee - element_at(tx_fee_breakdown, 'l1_fee')) AS l2_fee_eth,sum(tx_fee) as tx_fee_ethfrom gas.feesjoin trx ton t.evt_tx_hash = tx_hashwhere blockchain = 'arbitrum'and block_date >= date '2025-07-11'group by 1)order by 1 desc