rezarwzDistribution of users in the used of source blockchains
    Updated 2023-09-26
    with all_tx as (
    SELECT
    'arbitrum' as blockchain,
    TX_HASH,
    date_trunc('month', block_timestamp) as month,
    FROM_ADDRESS as ua,
    case
    when amount_usd is null
    and SYMBOL = 'DAI' then amount
    when amount_usd is null
    and SYMBOL = 'axlUSDC' then amount
    when amount_usd is null
    and SYMBOL = 'aArbUSDT' then amount
    when amount_usd is null
    and SYMBOL = 'aArbUSDC' then amount
    when amount_usd is null
    and SYMBOL = 'USD+' then amount
    when amount_usd is null
    and SYMBOL = 'USDC' then amount
    when amount_usd is null
    and SYMBOL = 'USDCx' then amount
    when amount_usd is null
    and SYMBOL = 'USDT' then amount
    else amount_usd
    end as amount_usd
    from
    arbitrum.core.ez_token_transfers
    where
    ORIGIN_TO_ADDRESS = '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and to_address = '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and from_address = origin_from_address
    and block_number >= 32495475
    UNION
    all
    SELECT
    'arbitrum' as blockchain,
    Run a query to Download Data