Moeava usdc chains

    select
    'Avalanche' as chain ,
    LABEL_TYPE as sector ,
    count(distinct TX_HASH) as txns,
    count(distinct FROM_ADDRESS) as users,
    sum(amount_usd) as usd_amt,
    avg(amount_usd) as avg_usd_amt


    from avalanche.core.ez_token_transfers
    join avalanche.core.dim_labels on TO_ADDRESS = address

    where block_timestamp >= CURRENT_DATE - {{days_back}}
    and SYMBOL ilike 'usdc'
    -- and PROJECT_NAME is not null
    group by 1,2

    union all


    select
    'Arbitrum' as chain ,
    LABEL_TYPE as sector ,
    count(distinct TX_HASH) as txns,
    count(distinct FROM_ADDRESS) as users,
    sum(amount_usd) as usd_amt,
    avg(amount_usd) as avg_usd_amt


    from Arbitrum.core.ez_token_transfers
    join Arbitrum.core.dim_labels on TO_ADDRESS = address

    where block_timestamp >= CURRENT_DATE - {{days_back}}
    and SYMBOL ilike 'usdc'
    -- and PROJECT_NAME is not null
    Run a query to Download Data