Afonso_DiazTotal copy
    Updated 2025-01-05
    -- forked from Total @ https://flipsidecrypto.xyz/studio/queries/fff5c963-a5b4-4941-99df-b4e1ed1151d6

    select
    count(distinct tx_hash) as transactions,
    count(distinct from_address) as users,
    transactions / datediff('seconds', min(block_timestamp), max(block_timestamp)) as tps,
    sum(tx_fee) as volume_fee,
    avg(tx_fee) as average_fee_amount,
    transactions / count(distinct block_timestamp::date) as daily_average_transactions,
    users / count(distinct block_timestamp::date) as daily_average_users
    from
    mantle.core.fact_transactions
    where
    block_timestamp between '{{ start_date }}' and '{{ end_date }}'
    and tx_succeeded



    QueryRunArchived: QueryRun has been archived