permaryyeasty-olive
    Updated 2025-03-19
    SELECT
    DATE_TRUNC('day', n.block_timestamp) AS date, -- Truncates to day level
    SUM(n.amount) AS ron_volume,
    SUM(n.amount_usd) AS volume_usd,
    COUNT(distinct n.tx_hash) AS pet_sales
    FROM ronin.core.ez_native_transfers n
    JOIN ronin.core.fact_event_logs e
    ON n.tx_hash = e.tx_hash
    WHERE e.contract_address = '0xb806028b6ebc35926442770a8a8a7aeab6e2ce5c'
    AND n.to_address = '0x3b3adf1422f84254b7fbb0e7ca62bd0865133fe3'
    GROUP BY DATE_TRUNC('day', n.block_timestamp) -- Groups all transactions per day
    ORDER BY date desc;



    select *
    from ronin.core.fact_event_logs e
    join ronin.core.fact_transactions f
    on e.tx_hash = f.tx_hash
    where e.tx_hash ='0x25ba5f50c681b854e35382374f055d43e2302e2711e0799a5c17fe040d2b917e'



    SELECT
    f.amount,
    e.tx_hash,
    e.contract_address,
    -- e.event_name,
    e.origin_from_address AS event_from_address,
    e.origin_to_address AS event_to_address,
    f.block_timestamp,
    f.from_address AS tx_from_address,
    f.to_address AS tx_to_address,
    -- f.tx_succeeded
    FROM ronin.core.fact_event_logs e
    JOIN ronin.core.ez_token_transfers f
    Last run: about 1 month ago
    DATE
    RON_VOLUME
    VOLUME_USD
    LAND_SALES
    1
    2025-03-18 00:00:00.000450349.642
    2
    2025-03-17 00:00:00.000568446.23
    3
    2025-03-16 00:00:00.000944741.324
    4
    2025-03-15 00:00:00.000174147.381
    5
    2025-03-14 00:00:00.0009188.887759.164
    6
    2025-03-13 00:00:00.000279.98228.982
    7
    2025-03-12 00:00:00.0002057.941569.089
    8
    2025-03-11 00:00:00.0001848.981319.285089
    9
    2025-03-10 00:00:00.00021421686.525
    10
    2025-03-09 00:00:00.0001770.861498.780389
    11
    2025-03-08 00:00:00.000641.8570.944
    12
    2025-03-07 00:00:00.0001307.41191.959956
    13
    2025-03-06 00:00:00.0001939.91843.749
    14
    2025-03-05 00:00:00.000465.46424.563
    15
    2025-03-04 00:00:00.000645.8577.283
    16
    2025-03-03 00:00:00.000725.354722.623
    17
    2025-03-02 00:00:00.0001270.91247.427
    18
    2025-03-01 00:00:00.000180170.661
    19
    2025-02-28 00:00:00.000939.2882.2016683
    20
    2025-02-26 00:00:00.000192195.461
    ...
    166
    7KB
    12s