saeedmzn[new accounts on base] NFT sales vs trades
Updated 2024-08-04
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 new_accounts as ( select
FROM_ADDRESS ,
min (BLOCK_TIMESTAMP) min_date
from base.core.fact_transactions
group by 1 having min_date >= current_date - 30
),
swaps as (
select
count (DISTINCT tx_hash) num_transactions ,
count (DISTINCT sender ) num_accounts
from base.defi.ez_dex_swaps
where SENDER in (select FROM_ADDRESS from new_accounts )
),
nft_sales as (
select
count (DISTINCT tx_hash) num_transactions ,
count (DISTINCT ORIGIN_FROM_ADDRESS) num_accounts
from base.nft.ez_nft_sales
where ORIGIN_FROM_ADDRESS in (select FROM_ADDRESS from new_accounts )
)
select 'swap' type , num_transactions , num_accounts from swaps
UNION
select 'NFT sale' type , num_transactions , num_accounts from nft_sales
QueryRunArchived: QueryRun has been archived