adriaparcerisasmultichain 2 july
    Updated 2023-07-12

    with
    arbitrum_inflows as (
    select
    trunc(block_timestamp,'day') as date,x.symbol,
    count(distinct tx_hash) as transactions,
    count(distinct origin_from_address) as active_users,
    sum(amount_usd) as volume, avg(amount_usd) as avg_volume
    from arbitrum.core.ez_token_transfers x
    join arbitrum.core.dim_labels z on x.to_address=z.address
    where amount_usd<1e9
    and block_timestamp >=CURRENT_DATE-INTERVAL '1 WEEK'
    and project_name ilike '%multichain%'
    group by 1,2

    UNION

    select
    trunc(block_timestamp,'day') as date,'ETH' as symbol,

    count(distinct tx_hash) as transactions,
    count(distinct origin_from_address) as active_users,
    sum(amount_usd) as volume, avg(amount_usd) as avg_volume
    from arbitrum.core.ez_eth_transfers x
    join arbitrum.core.dim_labels z on x.eth_to_address=z.address
    where amount_usd<1e9
    and block_timestamp >=CURRENT_DATE-INTERVAL '1 WEEK'
    and project_name ilike '%multichain%'
    group by 1,2
    ),
    arbitrum_outflows as (
    select
    trunc(block_timestamp,'day') as date,x.symbol,

    count(distinct tx_hash) as transactions,
    count(distinct to_address) as active_users,
    Run a query to Download Data