mamad-5XN3k3Debank 3
    Updated 2024-05-09
    with withdrawt as (
    select
    case
    when contract_address = '0xaf88d065e77c8cc2239327c5edb3a432268e5831' then 'arbitrum_withdrawal_usdc'
    when contract_address = '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' then 'arbitrum_withdrawal_usdt'
    when contract_address = '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' then 'arbitrum_withdrawal_usdc.e'
    end as "transaction",
    to_address,
    amount as "value",
    block_timestamp::date,
    tx_hash
    from arbitrum.core.ez_token_transfers
    where from_address = '0xad003006ceb0934012c289d1cfdb1db915998f74'
    and contract_address in ('0xaf88d065e77c8cc2239327c5edb3a432268e5831',
    '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
    '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8')
    and amount > 0

    union

    select
    case
    when contract_address = '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d' then 'binance_withdrawal_usdc'
    when contract_address = '0x55d398326f99059ff775485246999027b3197955' then 'binance_withdrawal_usdt'
    end as "transaction",
    to_address,
    amount as "value",
    block_timestamp::date,
    tx_hash
    from bsc.core.ez_token_transfers
    where from_address = '0xad003006ceb0934012c289d1cfdb1db915998f74'
    and contract_address in ('0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d','0x55d398326f99059ff775485246999027b3197955')
    and amount > 0

    union
    QueryRunArchived: QueryRun has been archived