omer93avalanche second wave
    Updated 2024-02-02

    SELECT
    date_trunc('day',block_timestamp) as date,
    label_type,
    count(distinct ORIGIN_FROM_ADDRESS) as users,
    count(distinct x.tx_hash) as tx,
    sum(tx) over (order by date) as cum_tx
    from avalanche.core.fact_event_logs x
    join avalanche.core.dim_labels y on x.contract_address=y.address
    where block_timestamp>=current_date-interval '3 months'
    and block_timestamp<current_date
    group by 1,2 order by 1 asc


    Last run: about 1 year ago
    DATE
    LABEL_TYPE
    USERS
    TX
    CUM_TX
    1
    2023-11-02 00:00:00.000token1576468803180258
    2
    2023-11-02 00:00:00.000bridge1058333699180258
    3
    2023-11-02 00:00:00.000defi1064238547180258
    4
    2023-11-02 00:00:00.000cex1222180258
    5
    2023-11-02 00:00:00.000dex721724957180258
    6
    2023-11-02 00:00:00.000dapp278810505180258
    7
    2023-11-02 00:00:00.000nft8753695180258
    8
    2023-11-02 00:00:00.000games1230180258
    9
    2023-11-03 00:00:00.000defi960732786344475
    10
    2023-11-03 00:00:00.000token1557662525344475
    11
    2023-11-03 00:00:00.000nft8743844344475
    12
    2023-11-03 00:00:00.000dapp24949277344475
    13
    2023-11-03 00:00:00.000dex723322542344475
    14
    2023-11-03 00:00:00.000games1534344475
    15
    2023-11-03 00:00:00.000bridge1113433194344475
    16
    2023-11-03 00:00:00.000cex1115344475
    17
    2023-11-04 00:00:00.000cex2429512263
    18
    2023-11-04 00:00:00.000dapp293810431512263
    19
    2023-11-04 00:00:00.000games720512263
    20
    2023-11-04 00:00:00.000bridge1448241972512263
    ...
    736
    39KB
    6s