Ali3NHourly Staking Round Overview (Stablejack $JACK Public Sale on Avalaunch) copy
    Updated 2025-03-28
    -- forked from Staking Round Overview (Stablejack $JACK Public Sale on Avalaunch) @ https://flipsidecrypto.xyz/studio/queries/9fceeb58-cccc-4d2b-b555-d19ac8b92ea7

    select date_trunc (hour,t1.block_timestamp) as date,
    count (distinct t1.tx_hash) as TX_Count,
    count (Distinct t1.origin_from_address) as Users,
    sum (t2.amount/2) as Volume,
    sum (t2.amount_usd/2) as USD_Volume,
    avg (t2.amount) as avg_Volume,
    avg (t2.amount_usd) as avg_USD_Volume,
    sum (TX_Count) over (order by date) as Total_TX,
    sum (Volume) over (order by date) as Total_Volume,
    sum (USD_Volume) over (order by date) as Total_USD_Volume
    from avalanche.core.ez_decoded_event_logs t1 join avalanche.core.ez_native_transfers t2 on t1.tx_hash = t2.tx_hash
    where t1.origin_to_address = '0xfae88aed6ceb890a07f23fc567370b11cb583f2d'
    and t1.contract_address = '0xa6a01f4b494243d84cf8030d982d7eeb2aecd329'
    and t1.origin_function_signature = '0xc82324e8'
    and t1.topic_0 in ('0x92f0bdf80f3916a4279540865e94ef327cf48639092106cca4bddc9bb1de4a86','0xa6b7d7885e75fafb205114d74135904f557437647ebcbb720fad77c6869c1835')
    and t1.block_timestamp > '2025-03-27 15:00:00.000'
    and t2.to_address = t1.origin_to_address
    and t1.tx_succeeded
    group by 1
    order by 1 desc
    --and t1.tx_hash = '0x61aa1c6786362bca58d440d6c5746bc12910074508279687c7a808615ad0ede8'
    --and contract_address = '0xa6a01f4b494243d84cf8030d982d7eeb2aecd329'


    /*

    select *
    from avalanche.core.ez_native_transfers
    where tx_hash = '0x61aa1c6786362bca58d440d6c5746bc12910074508279687c7a808615ad0ede8'
    and blocK_timestamp::date >= '2025-03-27'

    select *
    from avalanche.core.ez_token_transfers
    where tx_hash = '0x61aa1c6786362bca58d440d6c5746bc12910074508279687c7a808615ad0ede8'
    Last run: 12 days ago
    DATE
    TX_COUNT
    USERS
    VOLUME
    USD_VOLUME
    AVG_VOLUME
    AVG_USD_VOLUME
    TOTAL_TX
    TOTAL_VOLUME
    TOTAL_USD_VOLUME
    1
    2025-03-28 05:00:00.0001010243.5944046565276.2624.359440466527.6264395060.524236732111508
    2
    2025-03-28 04:00:00.00088141.4127318133088.4517.676591477386.056254294816.929832076106231.74
    3
    2025-03-28 03:00:00.0006637.78803679834.746.298006132139.1233333334214675.517100263103143.29
    4
    2025-03-28 02:00:00.0007723.764431256525.23.39491875175.0285714294154637.729063473102308.55
    5
    2025-03-28 01:00:00.0004434.441999576759.788.610499894189.9454084613.964632217101783.35
    6
    2025-03-28 00:00:00.0001010110.9786560442448.1911.097865604244.8194044579.522632641101023.57
    7
    2025-03-27 23:00:00.0001919887.64321999119696.8146.718064211036.6742105263944468.54397659798575.38
    8
    2025-03-27 22:00:00.0001414119.9743104312641.848.569593602188.7028571433753580.90075660678878.57
    9
    2025-03-27 21:00:00.0002020172.2357149713794.358.611785749189.71753613460.92644617576236.73
    10
    2025-03-27 20:00:00.0004444783.01988406617265.5617.795906456392.3990909093413288.69073120572442.38
    11
    2025-03-27 19:00:00.0004747442.74664449691.719.42014137206.2065957452972505.67084713955176.82
    12
    2025-03-27 18:00:00.0004343348.542398847633.098.105637182177.513720932502062.92420273945485.11
    13
    2025-03-27 17:00:00.0006767536.73650492611792.128.010992611176.0017910452071714.38180389937852.02
    14
    2025-03-27 16:00:00.0001211211017.64012525322581.398.410248969186.6230578511401177.64529897226059.9
    15
    2025-03-27 15:00:00.0001919160.005173723478.518.421324933183.07947368419160.005173723478.51
    15
    2KB
    3s