zakkisyedNew Wallets in Web3.0
Updated 2023-05-08
999
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 wallet_activity AS (
SELECT
'Arbitrum' AS blockchain,
from_address,
MIN(DATE_TRUNC('{{period}}', block_timestamp)) as first_activity_period
FROM
ARBITRUM.core.fact_transactions
WHERE block_timestamp >= '2023-01-01'
GROUP BY
from_address
UNION ALL
SELECT
'Optimism' AS blockchain,
from_address,
MIN(DATE_TRUNC('{{period}}', block_timestamp)) as first_activity_period
FROM
OPTIMISM.core.fact_transactions
WHERE block_timestamp >= '2023-01-01'
GROUP BY
from_address
UNION ALL
SELECT
'Avalanche' AS blockchain,
from_address,
MIN(DATE_TRUNC('{{period}}', block_timestamp)) as first_activity_period
FROM
AVALANCHE.core.fact_transactions
WHERE block_timestamp >= '2023-01-01'
GROUP BY
from_address
Run a query to Download Data