Hossein2023-07-10 09:42 AM
    with t as (
    select
    tx_hash,
    block_timestamp,
    'Mint' as type,
    symbol,
    from_address as user,
    amount
    from avalanche.core.ez_token_transfers
    where contract_address = '0xa25eaf2906fa1a3a13edac9b9657108af7b703e3'
    and from_address = '0x0000000000000000000000000000000000000000'
    and to_address != '0x0000000000000000000000000000000000000000'
    and amount > 0


    union all

    select
    tx_hash,
    block_timestamp,
    'Burn' as type,
    symbol,
    from_address as user,
    amount
    from avalanche.core.ez_token_transfers
    where contract_address = '0xa25eaf2906fa1a3a13edac9b9657108af7b703e3'
    and from_address != '0x0000000000000000000000000000000000000000'
    and to_address = '0x0000000000000000000000000000000000000000'
    and amount > 0
    )

    select
    type,
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    sum(amount) as volume,
    Run a query to Download Data