olavUntitled Query
Updated 2022-11-08
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
›
⌄
with
cex_list as (
select project_name, address_name, address as tx_receiver
from near.core.dim_address_labels
where (
l2_label = 'distributor_cex_satellite' or
l2_label = 'distributor_cex'
)
)
select
date_trunc('day', block_timestamp)::date "Date",
count(distinct tx_hash) "Transactions Count",
count(distinct tx_signer) "Users Count",
sum ("Transactions Count") over (order by "Date") "Comulative Transactions Count",
sum ("Users Count") over (order by "Date") "Comulative Users Count"
from near.core.fact_transactions
join cex_list
using (tx_receiver)
where tx_status = 'Success'
group by 1
order by "Date", "Transactions Count" desc
Run a query to Download Data