saeedmznUSDT Declining on Solana - cumulative
Updated 2022-10-07
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
›
⌄
with labels as (
select ADDRESS , ADDRESS_NAME
from solana.core.dim_labels
where label_type not in ('nft','token')
group by 1 ,2
),
outlofw as ( select date_trunc(week,BLOCK_TIMESTAMP) weekly,
-- ADDRESS_NAME platform,
count (distinct tx_id) num_transactions,
count (distinct tx_from) num_wallets,
sum (amount) Transferred_volume,
sum (Transferred_volume) over ( order by weekly) cum_Transferred_volume
from solana.core.fact_transfers join labels on TX_FROM = ADDRESS
and mint = 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'
and BLOCK_TIMESTAMP ::date >= '2022-01-01'
group by 1
),
inflow as (
select date_trunc(week,BLOCK_TIMESTAMP) weekly,
-- ADDRESS_NAME platform,
count (distinct tx_id) num_transactions,
count (distinct tx_from) num_wallets,
sum (amount) Transferred_volume,
sum (Transferred_volume) over ( order by weekly) cum_Transferred_volume
from solana.core.fact_transfers join labels on TX_TO = ADDRESS
and mint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
and BLOCK_TIMESTAMP ::date >= '2022-01-01'
group by 1
)
select 'inflows' type , weekly , Transferred_volume , cum_Transferred_volume from inflow
UNION
select 'outflows' type , weekly , Transferred_volume , - cum_Transferred_volume from outlofw
Run a query to Download Data