Hessishrbts 2
    Updated 1 hour ago
    with all_tx as (
    select
    b.value as bet_amt,
    ((LENGTH(RIGHT(data, LENGTH(data) - 194)) / 64) - 1) as cards_in_slip,
    ethereum.public.udf_hex_to_int(a.TOPICS[2]) as bet_id_decoded,
    a.tx_hash,
    a.ORIGIN_FROM_ADDRESS,
    a.BLOCK_TIMESTAMP
    from monad.testnet.fact_event_logs a
    join monad.testnet.fact_transactions b
    on a.tx_hash = b.tx_hash
    WHERE
    a.ORIGIN_FUNCTION_SIGNATURE = '0x5029defb'
    and a.ORIGIN_TO_ADDRESS in ('0x3ad50059d6008b711209a509fe58e68f0b672a42','0x740990cb01e893a371a050736c62ae0b779109e7')
    and b.TO_ADDRESS in ('0x3ad50059d6008b711209a509fe58e68f0b672a42','0x740990cb01e893a371a050736c62ae0b779109e7')
    group by all )

    select BLOCK_TIMESTAMP::date as date,
    count(distinct ORIGIN_FROM_ADDRESS) as users,
    count(distinct tx_hash) as bet_tx,
    sum(bet_amt) as volume,
    round(avg(cards_in_slip)) as avg_cards,
    sum(cards_in_slip) as total_cards
    from all_tx
    group by all


    Last run: about 1 hour ago
    DATE
    USERS
    BET_TX
    VOLUME
    AVG_CARDS
    TOTAL_CARDS
    1
    2025-03-11 00:00:00.000318144231458.8313655
    2
    2025-02-28 00:00:00.00010861875672.235736
    3
    2025-02-18 00:00:00.0007548.53167
    4
    2025-02-21 00:00:00.000175729271198.439364
    5
    2025-03-12 00:00:00.000248236131173.1311741
    6
    2025-02-20 00:00:00.000172728151128.838933
    7
    2025-03-10 00:00:00.000272437851325.1310914
    8
    2025-03-28 00:00:00.00018992702668.839320
    9
    2025-04-22 00:00:00.000292937871398.8414266
    10
    2025-02-25 00:00:00.000366059952197.9318443
    11
    2025-04-23 00:00:00.000314749132127.2316832
    12
    2025-03-18 00:00:00.000299738391096.7311003
    13
    2025-03-23 00:00:00.00020072492662.736986
    14
    2025-02-05 00:00:00.00012224
    15
    2025-04-21 00:00:00.000234630271333.939570
    16
    2025-04-18 00:00:00.000228629931406.239285
    17
    2025-04-03 00:00:00.000204325931094.138031
    18
    2025-04-07 00:00:00.000322443231024.4312796
    19
    2025-02-24 00:00:00.000266340831542.9312017
    20
    2025-03-15 00:00:00.000275041591358416426
    71
    4KB
    79s