HessishAs trds ovr
    Updated 7 days ago
    with tk_ids as
    (select
    INSTRUCTION:parsed:info:mint as mint_tk,
    tx_id
    from eclipse.core.fact_events_inner
    where INSTRUCTION:parsed:info:mintAuthority = '3x6Gqc2qFTgwq87LEe1wmybPJLFZPiE8QnSXxDkrAC9E' and
    INSTRUCTION_PROGRAM_ID in ('RariUNM3vz1rwxPg8UJyRAN7rSKXxgd2ncS2ddCa4ZE','5hEa5j38yNJRM9vQA44Q6gXVj4Db8y3mWxkDtQeofKKs')
    and EVENT_TYPE = 'mintTo'
    and SUCCEEDED = 'TRUE'),


    prc as (
    select HOUR::date as day, avg(close) as price
    from crosschain.price.fact_prices_ohlc_hourly
    where HOUR::date >= '2024-09-01'
    and asset_id = 'ethereum'
    group by all),


    nft_cost as

    (select sum(AMOUNT/pow(10,DECIMAL)) as amounteth,
    amounteth*avg(price) as amountusd,
    TX_FROM as buyer, tx_id as hash
    from eclipse.core.fact_transfers
    join prc on BLOCK_TIMESTAMP::date = day
    where --tx_id = '5PgkN1J8PLAufv2rkynyQQV3wzzxpSwLdAj7iwMQoSkudBsdtDAu2AUQV2TAYTYgCHYgz8hZnJZivdD4DxWNAaSY' and
    MINT = 'Eth1111111111111111111111111111111111111111'
    and tx_id in (SELECT DISTINCT tx_id
    from eclipse.core.fact_events_inner
    where INSTRUCTION_PROGRAM_ID = 'Rarim7DMoD45z1o25QWPsWvTdFSSEdxaxriwWZLLTic')
    group by all),

    nft_details as

    ( select
    Last run: 7 days ago
    DAY
    Total Volume (ETH)
    Total Volume (USD)
    Total trades
    Cumulative trades
    1
    2024-12-26 00:00:00.00034.70579117572.530028829583571
    2
    2025-04-21 00:00:00.0002.0013234.0628966659
    3
    2025-02-20 00:00:00.0009.6873926484.557341625195370
    4
    2024-12-12 00:00:00.00060.931188999237975.8983139442082187
    5
    2024-12-24 00:00:00.00025.0700986045.165954908423469
    6
    2025-03-12 00:00:00.0008.49929999816082.842917715155786
    7
    2025-02-21 00:00:00.0005.987816379.217733667125382
    8
    2024-12-29 00:00:00.000129.18713999436036.4181643981663857
    9
    2025-02-03 00:00:00.00019.06204999950536.218831995404998
    10
    2025-01-15 00:00:00.0009.335430657.9748265164434
    11
    2025-01-24 00:00:00.00026.48889104.77114494760
    12
    2025-01-08 00:00:00.00024.940883295.091128394210
    13
    2025-02-18 00:00:00.0006.03667699916173.382011412125329
    14
    2025-01-14 00:00:00.00021.92269969.918000833384418
    15
    2024-12-23 00:00:00.00030.1089100036.330980375493427
    16
    2025-03-28 00:00:00.00025.092548119.918615625516177
    17
    2024-12-15 00:00:00.00023.860692642.4182415662556
    18
    2025-04-22 00:00:00.0004.3037059.263342083146673
    19
    2025-03-10 00:00:00.0009.429919023.703449375185750
    20
    2025-03-11 00:00:00.00010.960620834.082022833215771
    ...
    160
    9KB
    17s