hbd19942024-04-15 11:44 PM
    Updated 2024-04-16
    with txs as (
    (select
    'ETH' as SYMBOL_OR_CONTRACT,
    AMOUNT_PRECISE as amount,
    AMOUNT_USD,
    BLOCK_TIMESTAMP,
    TX_HASH,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_FUNCTION_SIGNATURE,
    FROM_ADDRESS,
    TO_ADDRESS
    from arbitrum.core.ez_native_transfers
    where ORIGIN_TO_ADDRESS in('0x00000000005bbb0ef59571e58418f9a4357b68a0')
    and AMOUNT > 0)
    union all
    (select
    coalesce(SYMBOL,CONTRACT_ADDRESS) as SYMBOL_OR_CONTRACT,
    AMOUNT_PRECISE as amount,
    AMOUNT_USD,
    BLOCK_TIMESTAMP,
    TX_HASH,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_FUNCTION_SIGNATURE,
    FROM_ADDRESS,
    TO_ADDRESS
    from arbitrum.core.ez_token_transfers
    where ORIGIN_TO_ADDRESS in('0x00000000005bbb0ef59571e58418f9a4357b68a0')
    and AMOUNT > 0)),

    Swap_from as (select
    'Swap From' as action,
    *
    from txs
    where ORIGIN_FROM_ADDRESS = FROM_ADDRESS),
    Swap_for as
    (select
    QueryRunArchived: QueryRun has been archived