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


    union all

    select
    tx_hash,
    block_timestamp,
    'Burn' as type,
    symbol,
    origin_from_address as user,
    amount
    from avalanche.core.ez_token_transfers
    where contract_address = '0xc3344870d52688874b06d844e0c36cc39fc727f6'
    and from_address = '0x6c6f910a79639dcc94b4feef59ff507c2e843929'
    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