superflyBlur nft per tx
Updated 2022-12-09Copy Reference Fork
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
›
⌄
with base as (
select
TX_HASH as "transactions",
count (tokenid) as "nfts"
from ethereum.core.ez_nft_sales
where AGGREGATOR_NAME ='Blur'
and EVENT_TYPE = 'sale'
and BLOCK_TIMESTAMP >= CURRENT_DATE - 7
group by 1)
select
CASE
WHEN "nfts" =1 then'only 1 NFT'
WHEN "nfts" >= 2 AND "nfts"< 5 THEN '2-5 NFTs'
WHEN "nfts" >= 5 AND "nfts"< 10 THEN '5-10 NFTs'
WHEN "nfts" >= 10 AND "nfts"< 20 THEN '10-20 NFTs'
WHEN "nfts" >= 20 AND "nfts"<50 THEN '20-50 NFTs'
WHEN "nfts" >= 50 then 'More than 50 NFTs'
END as status,
COUNT(DISTINCT "transactions") as "num_transactions"
from base
where status is not null
group by 1
Run a query to Download Data