Query editor
withdaily_transfers as (selectt.blockchain,t.date,sum(t.total_eth) as total_eth,sum(t.total_eth * p.price) as total_usdfrom (selectblockchain,cast(evt_block_time as date) as date,date_trunc('minute', evt_block_time) as minute,sum(value / 1e18) as total_eth,contract_addressfrom evms.erc20_transferswhere blockchain = 'base'and "to" = 0x151e2590692c73a10f6f9873d4270a4f12106f94and contract_address = 0x4200000000000000000000000000000000000006and evt_block_date >= date('2024-01-01')group by 1, 2, 3, 5union allselectblockchain,cast(evt_block_time as date) as date,date_trunc('minute', evt_block_time) as minute,sum(value / 1e18) as total_eth,contract_addressfrom evms.erc20_transferswhere blockchain = 'arbitrum'and "to" = 0x0dad6565df691a86e80e057f64ba7c2b29c03d14and contract_address = 0x82af49447d8a07e3bd95bd0d56f35241523fbab1and evt_block_date >= date('2024-01-01')group by 1, 2, 3, 5) tleft join prices.usd pon p.blockchain = t.blockchainand p.contract_address = t.contract_addressand p.minute = t.minutegroup by 1, 2order by 2 desc)selectblockchain, date as day, total_eth, total_usd, sum(total_eth) over (partition by blockchain order by date) as cum_total_eth, sum(total_usd) over (partition by blockchain order by date) as cum_total_usdfrom daily_transfers