Query editor
withcombined as (-- Polygon transactionsselect *, 'polygon' as blockchainfrom(selectevt_block_time,contract_address,casewhen "to" = 0x19b620929f97b7b990801496c3b361ca5def8c71then cast(value as decimal(38, 0))else - cast(value as decimal(38, 0))end as amount,evt_tx_hashfrom erc20_polygon.evt_transferwhere("to" = 0x19b620929f97b7b990801496c3b361ca5def8c71or "from" = 0x19b620929f97b7b990801496c3b361ca5def8c71)and evt_block_time >= timestamp '2022-05-01')union all-- BNB transactionsselect *, 'bnb' as blockchainfrom(selectevt_block_time,contract_address,casewhen "to" = 0x590162bf4b50f6576a459b75309ee21d92178a10then cast(value as decimal(38, 0))else - cast(value as decimal(38, 0))end as amount,evt_tx_hashfrom erc20_bnb.evt_transferwhere("to" = 0x590162bf4b50f6576a459b75309ee21d92178a10or "from" = 0x590162bf4b50f6576a459b75309ee21d92178a10)and evt_block_time >= timestamp '2022-05-01')union all-- Arbitrum transactionsselect *, 'arbitrum' as blockchainfrom(selectevt_block_time,contract_address,casewhen "to" = 0xfa7093cdd9ee6932b4eb2c9e1cde7ce00b1fa4b9then cast(value as decimal(38, 0))else - cast(value as decimal(38, 0))end as amount,evt_tx_hashfrom erc20_arbitrum.evt_transfer