DATE | LABEL_CATEGORY | UNIQUE_WALLETS | |
---|---|---|---|
1 | 2021-02-01 00:00:00.000 | Bridge | 177 |
2 | 2021-02-01 00:00:00.000 | Games | 2 |
3 | 2021-02-01 00:00:00.000 | Nft | 69 |
4 | 2021-02-01 00:00:00.000 | Cex | 22 |
5 | 2021-02-01 00:00:00.000 | Dex | 406 |
6 | 2021-02-01 00:00:00.000 | Defi | 279 |
7 | 2021-02-01 00:00:00.000 | Dapp | 120 |
8 | 2021-02-08 00:00:00.000 | Cex | 94 |
9 | 2021-02-08 00:00:00.000 | Defi | 1793 |
10 | 2021-02-08 00:00:00.000 | Dex | 1895 |
11 | 2021-02-08 00:00:00.000 | Bridge | 954 |
12 | 2021-02-08 00:00:00.000 | Games | 1 |
13 | 2021-02-08 00:00:00.000 | Nft | 549 |
14 | 2021-02-08 00:00:00.000 | Dapp | 706 |
15 | 2021-02-08 00:00:00.000 | Chadmin | 1 |
16 | 2021-02-15 00:00:00.000 | Games | 11 |
17 | 2021-02-15 00:00:00.000 | Defi | 4785 |
18 | 2021-02-15 00:00:00.000 | Dapp | 1583 |
19 | 2021-02-15 00:00:00.000 | Dex | 5065 |
20 | 2021-02-15 00:00:00.000 | Nft | 929 |
yasminNEW WALLET WHERE 2
Updated 2025-03-11
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
34
35
36
›
⌄
WITH interactions AS (
SELECT
block_timestamp::date AS date,
from_address AS wallet,
INITCAP(label_type) AS label_category
FROM avalanche.core.fact_event_logs
JOIN avalanche.core.dim_labels
ON address = contract_address
JOIN avalanche.core.fact_transactions USING (tx_hash)
WHERE tx_status = 'SUCCESS'
AND label_type IS NOT NULL
AND INITCAP(label_type) != 'Token'
),
first_interaction AS (
SELECT
from_address,
MIN(block_timestamp)::date AS first_date
FROM avalanche.core.fact_transactions
GROUP BY from_address
),
weekly_stats AS (
SELECT
DATE_TRUNC('week', first_date) AS date,
label_category,
COUNT(DISTINCT wallet) AS unique_wallets
FROM interactions
JOIN first_interaction
ON interactions.wallet = first_interaction.from_address
GROUP BY 1, 2
)
SELECT
date,
label_category,
unique_wallets
FROM weekly_stats
WHERE date >= '2021-02-01'
Last run: 19 days ago
...
1502
58KB
123s