SocioAnalyticaNFT mints Over Time
Updated 2024-03-21
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with sei_network as (
with all_nft_mints_sei as (
select
DISTINCT tx_id,
block_timestamp
from sei.core.fact_msg_attributes
where ATTRIBUTE_KEY = 'action'
and ATTRIBUTE_VALUE = 'mint'
and msg_type = 'wasm'
and block_timestamp::date >= dateadd('day', -{{past_days}}, current_date)
)
, avg_sei_price as (
SELECT
date_trunc('day',RECORDED_HOUR) as day,
avg(price) as usd_price
FROM osmosis.price.ez_prices
WHERE symbol = 'SEI'
and day >= current_date - 90
group by day
)
,
fee_sei as (
select
date_trunc('d', block_timestamp) as date,
avg(split(fee,'usei')[0] / pow(10,6)) as avg_fee_sei,
median(split(fee,'usei')[0] / pow(10,6)) as median_fee_sei
from sei.core.fact_transactions a
inner join all_nft_mints_sei b using(tx_id, block_timestamp)
where block_timestamp::date >= dateadd('day', -{{past_days}}, current_date)
group by 1
)
select
date
,avg_fee_sei
QueryRunArchived: QueryRun has been archived