tongzzezmint vs secondary
Updated 2022-10-23
99
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 mints as (
select
block_timestamp::date as day,
count(distinct tx_id) as number_of_transactions
from
flow.core.fact_events
where
event_contract like '%RaceDay_NFT%' and
event_type like 'Minted'
group by
day
)
,sells as (
select
block_timestamp::date as day,
count(distinct tx_id) as number_of_transactions
from
flow.core.ez_nft_sales
where
nft_collection like '%RaceDay%'
group by
day
)
select
day,
'Mint' as type,
number_of_transactions as Mint_Sales,
sum(Mint_Sales) over (order by day) as Cumulative_Mint_Sales
from
mints
Run a query to Download Data