Updated 2024-12-13
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    sender as user
    from
    aptos.core.fact_transactions
    where
    payload_function ilike '0x3c1d4a86594d681ff7e5d5a233965daeabdc6a15fe5672ceeda5260038857183%'
    )

    select
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    transactions / count(distinct block_timestamp::date) as daily_average_transactions,
    users / count(distinct block_timestamp::date) as daily_average_users
    from
    main
    where
    block_timestamp between '{{ start_date }}' and '{{ end_date }}'



    QueryRunArchived: QueryRun has been archived