CoinConverseThe 0% Marketplaces user_choice_royalty and non
Updated 2022-09-26
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
with user_choice_royalty as (select purchaser
from solana.core.fact_nft_sales
where marketplace in ('yawww','solanart'))
select date_trunc('day', block_timestamp) as dt, count(distinct tx_id) as num_txs, count(distinct purchaser) as num_buyers, 'Non 0% royalty marketplace' as type_user
from solana.core.fact_nft_sales
where marketplace in ('magic eden v1','magic eden v2')
and block_timestamp::date >= current_date-90 and block_timestamp::date != current_date
and purchaser not in (select purchaser from user_choice_royalty)
group by 1
union all
select date_trunc('day', block_timestamp) as dt, count(distinct tx_id) as num_txs, count(distinct purchaser) as num_buyers, '0% royalty marketplace' as type_user
from solana.core.fact_nft_sales
where marketplace in ('yawww','solanart')
and block_timestamp::date >= current_date-90 and block_timestamp::date != current_date
group by 1
Run a query to Download Data