Updated 2024-06-18
    with t as (
    select
    tx_hash,
    block_timestamp,
    signer_id as user,
    from near.core.fact_actions_events_function_call
    where receipt_succeeded = 1
    and receiver_id = '17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1' --USDC
    and block_timestamp::date >= '2024-01-01'
    )

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