dylan_apraPriori Faucet Claim Transactions
    Updated 2025-02-25

    select
    stat_date,
    daily_claim_tx_count,
    SUM(daily_claim_tx_count) OVER (ORDER BY stat_date) AS cumsum_claim_tx_count
    from
    (

    select
    TO_CHAR(stat_date, 'YYYY-MM-DD HH24') as stat_date
    ,count(distinct case when transfer_type='out' then hash else null end ) as daily_claim_tx_count
    from
    (
    SELECT
    FROM_ADDRESS AS core_address,
    TO_ADDRESS AS other_address,
    'out' AS transfer_type,
    value,
    BLOCK_TIMESTAMP AS stat_date,
    TX_HASH as hash
    FROM monad.testnet.fact_transactions
    WHERE from_address=lower('0xD7a24d1F1435CD314E86736E139f8431D4498D4e')
    and BLOCK_TIMESTAMP>='2025-02-19 14:00:00'

    UNION ALL

    SELECT
    TO_ADDRESS AS core_address,
    FROM_ADDRESS AS other_address,
    'in' AS transfer_type,
    value,
    BLOCK_TIMESTAMP AS stat_date,
    TX_HASH as hash
    FROM monad.testnet.fact_transactions
    WHERE to_address=lower('0xD7a24d1F1435CD314E86736E139f8431D4498D4e')
    and BLOCK_TIMESTAMP>='2025-02-19 14:00:00'
    Last run: 13 days ago
    STAT_DATE
    DAILY_CLAIM_TX_COUNT
    CUMSUM_CLAIM_TX_COUNT
    1
    2025-02-27 228161717
    2
    2025-02-27 1815861251
    3
    2025-02-23 2014940284
    4
    2025-02-24 0228741163
    5
    2025-03-02 0344676581
    6
    2025-02-28 1425167597
    7
    2025-02-25 1516849626
    8
    2025-02-24 1112843654
    9
    2025-03-03 2011586020
    10
    2025-03-03 1635085303
    11
    2025-02-19 1610121686
    12
    2025-02-27 0120357500
    13
    2025-03-03 2111486134
    14
    2025-02-19 15629674
    15
    2025-02-27 2311461831
    16
    2025-02-26 1229754808
    17
    2025-02-19 179672653
    18
    2025-03-03 1713885441
    19
    2025-03-02 207979635
    20
    2025-02-26 0622853246
    ...
    220
    6KB
    10s