mz0111Gnosis 2
Updated 2022-10-16Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
›
⌄
--credit to 0xHaM☰d
select
block_timestamp::date as date,
LABEL_TYPE,
LABEL_SUBTYPE,
count(distinct from_address) as Users_Count,
count(distinct tx_hash) as tx_cnt,
sum(TX_FEE) as fee_amt,
sum(tx_cnt) over (order by date) as cum_tx_cnt,
sum(fee_amt) over (order by date) as cum_fee_amt
from gnosis.core.fact_transactions a join gnosis.core.dim_labels b on a.to_address= b.address
where block_timestamp >= CURRENT_DATE - 40
group by 1,2,3
Run a query to Download Data