Query editor
with eth_bridged as (SELECT block_time, value as value, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 as contract_address, "from" as senderFROM ethereum.transactionsWHERE "to" = 0xBFfaA85c1756472fFC37e6D172A7eC0538C14474), erc20_transfers as (SELECTblock_time,varbinary_to_uint256(varbinary_substring(data,65,32)) as value,varbinary_ltrim(varbinary_substring(data,33,32)) as contract_address, varbinary_ltrim(topic1) as senderFROM ethereum.logsWHERE contract_address = 0x0f1b7bd7762662b23486320aa91f30312184f70cAND topic0 in (0x5087c507ecc5d0c98a650e056183b51dc2354729f823139bbbdf3122f8f7bfa8,0x0f00328f1debfef06084747c5e5d692e0ef06a0ff8211cced82e15195191053f)-- GROUP BY 1), all_inflows as (SELECT * FROM eth_bridgedUNION ALLSELECT * FROM erc20_transfers),all_outflows as (SELECT evt_block_time as block_time, value, contract_address, "to" as senderFROM erc20_ethereum.evt_transferwhere contract_address = 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0and "from" = 0xc5d01939Af7Ce9Ffc505F0bb36eFeDde7920f2dcUNION ALLSELECT evt_block_time as block_time, value, contract_address, "to" as senderFROM erc20_ethereum.evt_transferwhere contract_address = 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7eeand "from" = 0xeB66259d2eBC3ed1d3a98148f6298927d8A36397UNION ALLSELECT evt_block_time as block_time, value, contract_address, "to" as senderFROM erc20_ethereum.evt_transferwhere contract_address = 0x83F20F44975D03b1b09e64809B757c47f942BEeAand "from" = 0x5B8Ae1C9c5970e2637Cf3Af431acAAebEf7aFb85UNION ALLSELECT evt_block_time as block_time, value, contract_address, "to" as senderFROM erc20_ethereum.evt_transferwhere contract_address = 0x9D39A5DE30e57443BfF2A8307A4256c8797A3497and "from" = 0x43b718Aa5e678b08615CA984cbe25f690B085b32UNION ALLSELECT evt_block_time as block_time, value, contract_address, "to" as senderFROM erc20_ethereum.evt_transfer