Afonso_DiazOvertime
    Updated 2 days ago
    with

    pricet as (
    select
    hour::date as date,
    avg(price) as token_price_usd
    from
    sei.price.ez_prices_hourly
    where
    token_address = 'usei'
    group by 1
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    -- Determine NFT collection address
    iff(
    decoded_log:consideration[0]:token != '0x0000000000000000000000000000000000000000',
    decoded_log:consideration[0]:token,
    decoded_log:offer[0]:token
    ) as collection_address,

    -- Determine buyer and seller addresses
    iff(
    collection_address = '0x0000000000000000000000000000000000000000',
    origin_from_address,
    decoded_log:consideration[0]:recipient
    ) as buyer_address,

    iff(
    collection_address != '0x0000000000000000000000000000000000000000',
    origin_from_address,
    decoded_log:consideration[0]:recipient
    Last run: 2 days ago
    DATE
    TRANSACTIONS
    BUYERS
    SELLERS
    VOLUME
    AVERAGE_AMOUNT
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    CUMULATIVE_TRANSACTIONS
    CUMULATIVE_VOLUME
    1
    2024-12-01 00:00:00.000515812031450125845.702406510.13168846459613.7265282564.7994305235158125845.7024065
    2
    2025-01-01 00:00:00.0002934866102081357.921173213.65294867830002.6505287315.0348465398092207203.6235797
    3
    2025-02-01 00:00:00.00031841478109358391.0538473858.09300815614681.2610800792.03482482111276265594.677427085
    4
    2025-03-01 00:00:00.0003644867103974161.09806590810.92371454815204.8219048332.23962614614920339755.775492993
    5
    2025-04-01 00:00:00.000246964181042765.1145387689.8085125097697.802068061.76555093317389382520.890031761
    6
    2025-05-01 00:00:00.000362927577.2045027.696060027126.5017981211.68669064217425383098.094533761
    6
    708B
    3s