omer93mooz on sei mints 2
    Updated 2025-02-27
    WITH info AS (
    SELECT
    case when value>0 then value/40 else 1 end as nft_id,
    tx_hash,
    block_timestamp,
    from_address AS minter,
    to_address AS collection,
    value AS attribute_value
    FROM
    sei.core_evm.fact_transactions
    WHERE
    block_timestamp > '2024-12-01'
    and origin_function_signature in ('0xb971b4c4') and to_address='0xce0fee0ac17f37cd66642f0ec8a4675ae7f590dd'
    GROUP BY
    tx_hash, block_timestamp, minter, collection, attribute_value
    )
    select
    trunc(block_timestamp,'hour') as date,
    count(distinct tx_hash) as mints,
    sum(mints) over (order by date) as total_mints,
    sum(nft_id)*3 as distinct_nft_minted,
    sum(distinct_nft_minted) over (order by date) as total_nft_minted,
    count(distinct minter) as minters,
    sum(attribute_value) as sei_volume,
    sum(sei_volume) over (order by date) as total_sei_volume,
    avg(case when attribute_value>0 then attribute_value/nft_id else attribute_value end) as avg_nft_price
    from info
    group by 1 order by 1 desc





    Last run: about 2 months ago
    DATE
    MINTS
    TOTAL_MINTS
    DISTINCT_NFT_MINTED
    TOTAL_NFT_MINTED
    MINTERS
    SEI_VOLUME
    TOTAL_SEI_VOLUME
    AVG_NFT_PRICE
    1
    2025-01-04 16:00:00.0001531633331803600040
    2
    2025-01-04 08:00:00.0001530633271803592040
    3
    2025-01-04 03:00:00.0001529633211803584040
    4
    2025-01-04 00:00:00.0001528633151803576040
    5
    2025-01-03 22:00:00.0001527633091803568040
    6
    2025-01-03 17:00:00.0001526633031803560040
    7
    2025-01-03 14:00:00.000152512329711603552040
    8
    2025-01-03 12:00:00.0001524632851803536040
    9
    2025-01-03 11:00:00.000152312327911603528040
    10
    2025-01-03 07:00:00.000152218326712403512040
    11
    2025-01-03 03:00:00.000152112324911603488040
    12
    2025-01-02 23:00:00.0001520632371803472040
    13
    2025-01-02 22:00:00.000151912323111603464040
    14
    2025-01-02 18:00:00.000251812321911603448040
    15
    2025-01-02 14:00:00.0001516632071803432040
    16
    2025-01-02 13:00:00.0001515632011803424040
    17
    2025-01-02 11:00:00.000251448319516403416040
    18
    2025-01-02 09:00:00.0001512631471803352040
    19
    2025-01-02 06:00:00.000151118314112403344040
    20
    2025-01-02 05:00:00.0001510631231803320040
    ...
    102
    6KB
    4s