Updated 2023-07-01
    with dex as (
    select
    tx_hash
    from avalanche.core.ez_dex_swaps
    where token_in = '0xc891eb4cbdeff6e073e859e987815ed1505c2acd'
    or token_out = '0xc891eb4cbdeff6e073e859e987815ed1505c2acd'
    ),

    transfers as (
    select
    tx_hash
    from avalanche.core.ez_token_transfers
    where contract_address = '0xc891eb4cbdeff6e073e859e987815ed1505c2acd'
    and from_address <> '0x0000000000000000000000000000000000000000'
    ),

    recon as (
    select *
    from dex
    union
    select *
    from transfers
    )

    select
    count(tx_hash) as tx_count
    from recon

    Run a query to Download Data