SalehFLOW Speed (redux)-events-date
    Updated 2025-05-14
    with lst_top_10 as (
    select top 10
    event_type
    ,count(DISTINCT tx_id) as tx_count
    from flow.core.fact_events
    where block_timestamp::date >= '2024-01-01'
    and TX_SUCCEEDED=true
    group by 1
    order by tx_count desc
    )
    select
    date_trunc(week,block_timestamp)::date as date
    ,event_type as actions
    ,count(DISTINCT tx_id) as tx_count
    ,tx_count/(1440*7) as TPM
    ,tx_count/(86400*7)as TPS
    ,sum(tx_count) over(partition by actions order by date) as growth_tx
    from flow.core.fact_events
    where block_timestamp::date >= '2024-01-01'
    and event_type in(select event_type from lst_top_10)
    and TX_SUCCEEDED=true
    group by 1,2
    order by 1
    Last run: about 2 months ago
    DATE
    ACTIONS
    TX_COUNT
    TPM
    TPS
    GROWTH_TX
    1
    2024-01-01 00:00:00.000Deposit1188205117.877481.9646251188205
    2
    2024-01-01 00:00:00.000Withdraw51718751.3082340.855137517187
    3
    2024-01-01 00:00:00.000NFTCreated21589921.4185520.356976215899
    4
    2024-01-01 00:00:00.000Deposited10.0000990.0000021
    5
    2024-01-01 00:00:00.000TokensDeposited1907158189.2021833.153371907158
    6
    2024-01-01 00:00:00.000FeesDeducted1907158189.2021833.153371907158
    7
    2024-01-01 00:00:00.000TokensWithdrawn1907158189.2021833.153371907158
    8
    2024-01-01 00:00:00.000AccountKeyAdded618706.1378970.10229861870
    9
    2024-01-08 00:00:00.000TokensWithdrawn1717836170.4202382.8403373624994
    10
    2024-01-08 00:00:00.000Deposited60.0005950.000017
    11
    2024-01-08 00:00:00.000TokensDeposited1717836170.4202382.8403373624994
    12
    2024-01-08 00:00:00.000Deposit95799695.0392861.5839882146201
    13
    2024-01-08 00:00:00.000AccountKeyAdded313113.106250.05177193181
    14
    2024-01-08 00:00:00.000NFTCreated23597523.4102180.39017451874
    15
    2024-01-08 00:00:00.000Withdraw43418543.0739090.717898951372
    16
    2024-01-08 00:00:00.000FeesDeducted1717836170.4202382.8403373624994
    17
    2024-01-15 00:00:00.000Deposit97241696.4698411.6078313118617
    18
    2024-01-15 00:00:00.000TokensDeposited2474263245.4625994.0910436099257
    19
    2024-01-15 00:00:00.000TokensWithdrawn2474263245.4625994.0910436099257
    20
    2024-01-15 00:00:00.000NFTCreated33590433.323810.555397787778
    ...
    594
    45KB
    393s