MLDZMNEPA6
Updated 2023-02-13
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with tb2 as (select
RECORDED_HOUR::date as day,
avg(close) as price_token
from solana.core.fact_token_prices_hourly where SYMBOL='SOL'
group by 1)
select
PROJECT_NAME as NFT_project,
count(distinct tx_id) as no_action,
count(distinct purchaser) as no_user,
count(distinct x.mint) as no_nfts,
sum(MINT_PRICE) as volume,
sum(MINT_PRICE*price_token) as volume_usd,
avg(MINT_PRICE*price_token) as avg_mint_price,
row_number() over (order by avg_mint_price desc) as rank1
from solana.core.fact_nft_mints x join tb2 y on x.BLOCK_TIMESTAMP::date=y.day
left join solana.core.dim_nft_metadata z on x.mint=z.mint
where SUCCEEDED='TRUE'
and BLOCK_TIMESTAMP>='2022-01-01'
and MINT_PRICE > 0
and MINT_CURRENCY='So11111111111111111111111111111111111111111'
group by 1 having NFT_project is not NULL
order by 7 desc limit 10
Run a query to Download Data