Updated 2025-02-24
    WITH main AS (
    SELECT
    tx_hash,
    block_timestamp,
    from_address AS user,
    tx_fee
    FROM kaia.core.fact_transactions
    )

    select
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    transactions / users as avg_transactions_per_user,
    users / count(distinct block_timestamp::date) as daily_average_users
    from
    main
    QueryRunArchived: QueryRun has been archived