0xd0cdTotal (users and txns) copy
    Updated 2024-11-06
    with

    main as (
    select
    tx_id,
    block_timestamp,
    f.value['value'] as user
    from
    aleo.core.fact_transitions
    join
    lateral flatten(input => inputs) f
    where
    f.value['value'] ilike 'aleo%'
    )

    select
    count(distinct tx_id) as transactions,
    count(distinct user) as total_unique_users,
    count(distinct tx_id) / count(distinct block_timestamp::date) as daily_average_transactions,
    count(distinct user) / count(distinct block_timestamp::date) as daily_average_users
    from
    main
    aleo.core.fact_transactionsaleo.core.fact_transactions
    QueryRunArchived: QueryRun has been archived