h4wkCard type
    Updated 7 days ago
    -- forked from BONK amount send type @ https://flipsidecrypto.xyz/studio/queries/5e54372b-68d3-47b2-97b7-a19823bfe1ca

    -- forked from how long before claiming type @ https://flipsidecrypto.xyz/studio/queries/302be25a-4828-4954-b0ff-a67d63dacbe7

    -- forked from how long before claiming @ https://flipsidecrypto.xyz/studio/queries/42f097f7-71b6-43cb-8886-ed96edec1573

    -- forked from new wallet creation rate @ https://flipsidecrypto.xyz/studio/queries/bf68f220-97c2-4a58-93c8-1f182435e5af

    with bonk_price as (
    select hour,
    avg(price) as bonk_price
    from solana.price.ez_prices_hourly
    where token_address = 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'
    group by hour
    )
    , base as (
    select *
    from $query('69837e2b-feff-468e-84e1-d25106cf0031')
    join bonk_price on (date_trunc('hour', block_timestamp) = hour)
    )

    select card_name::string,
    sum(bonk_amount * bonk_price) as total_amount_usd,
    count(distinct tx_id) as tx_count
    from base
    group by 1
    order by tx_count desc





    Last run: 7 days ago
    CARD_NAME::STRING
    TOTAL_AMOUNT_USD
    TX_COUNT
    1
    Happy Mother's Day173749.2468597145968
    2
    Happy Father's Day97100.1996364684266
    3
    Well Done54334.9121877741796
    4
    BONK Boxing38052.6691728981558
    5
    Party Time37971.417208381256
    6
    Arrg-mazing Matey35514.7433410471054
    7
    Happy Birthday30994.2966160491047
    8
    You Did It28673.508847245970
    9
    Congratulations24493.302987154948
    10
    BONK AWA18682.710588684910
    11
    Happy Easter20315.650554866777
    12
    Congrats Matey13293.683520306750
    13
    BONK x TBW1914.1863046690
    14
    Happy Valentines13190.509273454469
    15
    Warmest Wishes8514.010526906366
    16
    Happy Lunar New Year3719.82309264100
    17
    Happy Thanksgiving3121.6837094390
    18
    Zombonk2174.0197830263
    19
    Happy Holidays2046.91420095562
    20
    Gobble Gobble4719.15863748253
    30
    1KB
    2s