ponzi_partakerstark -tx level copy
Updated 2023-08-02
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
›
⌄
-- forked from Hessish / stark -tx level @ https://flipsidecrypto.xyz/Hessish/q/0tEi_dQSjHwV/stark-tx-level
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 = 1 then 'A) Only 1 Transaction'
when txs > 1 and txs < 11 then 'B) Between 2~10 Transactions'
when txs > 10 and txs < 51 then 'C) Between 11~50 Transactions'
when txs > 50 and txs < 101 then 'D) Between 51~100 Transactions'
when txs > 110 and txs < 500 then 'E) Between 101~500 Transactions'
when txs > 500 then 'F) More than 500 Transactions' end as "Activity rate"
from x
GROUP by 2
Run a query to Download Data