angel09-SK3z3a2opsol
Updated 2022-11-28
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 dapps as (select label,count(distinct tx_from) users from solana.core.fact_transfers as t
inner join solana.core.dim_labels as l
on t.tx_to= l.address
where label_type='dapp'
group by 1
having users> 50)
, total_statistic as (select label,count(distinct tx_from) users , sum(amount) amount , count(1) cnt
from solana.core.fact_transfers as t
inner join solana.core.dim_labels as l
on t.tx_to= l.address
where label_type='dapp' and label in (select label from dapps)
group by 1)
, daily as (select label,date_trunc('day', block_timestamp) as dates , count(distinct tx_from) users , sum(amount) amount , count(1) cnt
from solana.core.fact_transfers as t
inner join solana.core.dim_labels as l
on t.tx_to= l.address
where label_type='dapp' and label in (select label from dapps)
group by 1,2)
, weekly as (select label,date_trunc('week', block_timestamp) as dates , count(distinct tx_from) users , sum(amount) amount , count(1) cnt
from solana.core.fact_transfers as t
inner join solana.core.dim_labels as l
on t.tx_to= l.address
where label_type='dapp' and label in (select label from dapps)
group by 1,2)
, monthly as (select label,date_trunc('month', block_timestamp) as dates , count(distinct tx_from) users , sum(amount) amount , count(1) cnt
from solana.core.fact_transfers as t
inner join solana.core.dim_labels as l
on t.tx_to= l.address
where label_type='dapp' and label in (select label from dapps)
group by 1,2)
, yearly as (select label,date_trunc('year', block_timestamp) as dates , count(distinct tx_from) users , sum(amount) amount , count(1) cnt
Run a query to Download Data