Afonso_DiazUntitled Query
    Updated 2023-01-22
    with arbitrum as (
    select
    date_trunc('week', min_date)::date as day,
    count(distinct sender) as arbitrum_new_wallets_count
    from (
    select min(block_timestamp)::date as min_date,
    from_address as sender
    from arbitrum.core.fact_transactions
    group by 2
    )
    group by day
    ),

    ethereum as (
    select
    date_trunc('week', min_date)::date as day,
    count(distinct sender) as ethereum_new_wallets_count
    from (
    select min(block_timestamp)::date as min_date,
    from_address as sender
    from ethereum.core.fact_transactions
    group by 2
    )
    group by day
    ),

    optimism as (
    select
    date_trunc('week', min_date)::date as day,
    count(distinct sender) as optimism_new_wallets_count
    from (
    select min(block_timestamp)::date as min_date,
    from_address as sender
    from optimism.core.fact_transactions
    group by 2
    )
    Run a query to Download Data