cryptodedGetting Started
Updated 2025-01-09Copy Reference Fork
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
›
⌄
with users_txs as (
select user, count(distinct tx_id) as txs,
count(distinct date_trunc(day, BLOCK_TIMESTAMP)) as days,
count(distinct date_trunc(week, BLOCK_TIMESTAMP)) as weeks
from
(select SIGNERS[0] as USER, *
from eclipse.core.fact_events
WHERE SUCCEEDED=TRUE)
group by 1
)
select case when txs<=2 then '1 or 2 TXs'
when txs>2 then '2+ TXs'
when txs>5 then '5+ TXs'
when txs>10 then '10+ TXs'
when txs>20 then '20+ TXs'
when txs>100 then '100+ TXs'
when txs>1000 then '1000+ TXs'
else 'log' end as "TXs",
count(user) as "# of Wallets"
from users_txs
group by "TXs"
order by "# of Wallets" desc
QueryRunArchived: QueryRun has been archived