zkptxs query
Updated 2023-12-04
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
›
⌄
with x as (
SELECT
DISTINCT contract,
count(DISTINCT tx_hash) as txs
from
external.tokenflow_starknet.decoded_transactions
where
CHAIN_ID = 'mainnet'
group by
1
)
SELECT
count(DISTINCT contract) as wallets,
case
when txs >= 0
and txs < 5 then '0-4'
when txs > 4
and txs < 11 then '5-10'
when txs > 10
and txs < 26 then '11-25'
when txs > 25
and txs < 51 then '26-50'
when txs > 50
and txs < 101 then '51-100'
when txs > 100 then '>100'
end as "TXS"
from
x
GROUP by
2
Run a query to Download Data