omer93Avalanche principals 5
    Updated 2024-01-10
    WITH
    tpb as (
    select
    block_number,
    block_timestamp,
    count(distinct tx_hash) as txs
    from avalanche.core.fact_transactions
    where block_timestamp>=current_date-interval '3 months' and status='SUCCESS'
    group by 1,2
    )
    SELECT
    trunc(block_timestamp,'day') as date,
    avg(txs) as avg_tx_per_block
    from tpb where date<current_date
    group by 1
    order by 1 asc


    QueryRunArchived: QueryRun has been archived