zakkisyedWeb3 User Distribution -2023
    Updated 2023-05-05
    WITH wallet_activity AS (
    SELECT
    'Arbitrum' AS blockchain,
    from_address,
    DATE_TRUNC('{{period}}', block_timestamp) as activity_period,
    COUNT(*) as transaction_count
    FROM
    ARBITRUM.core.fact_transactions
    WHERE
    block_timestamp >= '2023-01-01'
    GROUP BY
    from_address, DATE_TRUNC('{{period}}', block_timestamp)

    UNION ALL

    SELECT
    'Optimism' AS blockchain,
    from_address,
    DATE_TRUNC('{{period}}', block_timestamp) as activity_period,
    COUNT(*) as transaction_count
    FROM
    OPTIMISM.core.fact_transactions
    WHERE
    block_timestamp >= '2023-01-01'
    GROUP BY
    from_address, DATE_TRUNC('{{period}}', block_timestamp)
    UNION ALL

    SELECT
    'Avalanche' AS blockchain,
    from_address,
    DATE_TRUNC('{{period}}', block_timestamp) as activity_period,
    COUNT(*) as transaction_count
    FROM
    AVALANCHE.core.fact_transactions
    Run a query to Download Data