HessishAs trds ovr
    Updated 2 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: 2 days ago
    DAY
    Total Volume (ETH)
    Total Volume (USD)
    Total trades
    Cumulative trades
    1
    2024-12-29 00:00:00.000129.18713999436036.4181643981663857
    2
    2025-02-03 00:00:00.00019.06204999950536.218831995404998
    3
    2024-12-24 00:00:00.00025.0700986045.165954908423469
    4
    2025-02-21 00:00:00.0005.987816379.217733667125382
    5
    2025-03-12 00:00:00.0008.49929999816082.842917715155786
    6
    2025-03-28 00:00:00.00025.092548119.918615625516177
    7
    2025-03-10 00:00:00.0009.429919023.703449375185750
    8
    2024-12-15 00:00:00.00023.860692642.4182415662556
    9
    2025-04-22 00:00:00.0004.3037059.263342083146673
    10
    2025-01-08 00:00:00.00024.940883295.091128394210
    11
    2025-01-24 00:00:00.00026.48889104.77114494760
    12
    2025-01-15 00:00:00.0009.335430657.9748265164434
    13
    2025-02-20 00:00:00.0009.6873926484.557341625195370
    14
    2024-12-12 00:00:00.00060.931188999237975.8983139442082187
    15
    2025-02-28 00:00:00.00024.6586000153713.407150699485526
    16
    2025-02-01 00:00:00.0005.68036999918488.335730779114940
    17
    2025-03-11 00:00:00.00010.960620834.082022833215771
    18
    2024-12-07 00:00:00.00037.697544767150856.7623564452581368
    19
    2024-12-26 00:00:00.00034.70579117572.530028829583571
    20
    2025-04-21 00:00:00.0002.0013234.0628966659
    ...
    141
    8KB
    95s