Hossein2023-07-10 05:01 PM

    with t as (

    select
    tx_hash,
    block_timestamp,
    'Mint' as type,
    'sAVAX' as platform,
    to_address as user,
    amount
    from avalanche.core.ez_token_transfers
    where to_address <> '0x0000000000000000000000000000000000000000'
    and from_address = origin_to_address
    and contract_address = '0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be'
    and amount > 0

    union all

    select
    tx_hash,
    block_timestamp,
    'Mint' as type,
    'sAVAX' as platform,
    to_address as user,
    amount
    from avalanche.core.ez_token_transfers
    where from_address = '0x0000000000000000000000000000000000000000'
    and contract_address = origin_to_address
    and origin_to_address = '0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be'
    and to_address <> '0x0000000000000000000000000000000000000000'
    and amount > 0

    union all

    select
    tx_hash,
    Run a query to Download Data