Query editor
selectdate_trunc('day', evt_block_time) as day,sum(cast(value as double)/1e6*-1) as amountfrom evms.erc20_transferswhere 1=1and "from" in (0x9E49ceFAB0e640dd767bef40cd3F8722229b968e,0x54fe3425f09854e15081fa5b3276afcb4c46fca2)and to = 0x8780Dd016171B91E4Df47075dA0a947959C34200and contract_address in (select address from query_4356226 where token = 'BUIDL')and evt_block_time>=date('2024-09-26')and blockchain in ('ethereum','arbitrum')group by 1union allselectdate_trunc('day', evt_block_time) as day,sum(cast(a.value as double)/1e6) as amountfrom evms.erc20_transfers aleft join evms.transactions bon a.evt_tx_hash = b.hashwhere 1=1and a."to" in (0x9E49ceFAB0e640dd767bef40cd3F8722229b968e,0x54fe3425f09854e15081fa5b3276afcb4c46fca2)and substr(cast(data as varchar),1,10) not in ('0xa9059cbb', '0xb28d07c3')and contract_address in (select address from query_4356226 where token = 'BUIDL')and evt_block_time>=date('2024-09-26')and a.blockchain in ('ethereum','arbitrum')group by 1