nethermindnarutMany - Tx Count and Active Addresses
Updated 2023-02-14
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 eth AS
(
SELECT
DATE_TRUNC('day', BLOCK_TIMESTAMP) AS day,
COUNT(DISTINCT TX_HASH) AS ethereum_txs_per_day,
COUNT(DISTINCT FROM_ADDRESS) AS ethereum_activeaddrs_per_day
FROM ethereum.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= {{start_date}}
GROUP BY 1
),
opt AS
(
SELECT
DATE_TRUNC('day', BLOCK_TIMESTAMP) AS day,
COUNT(DISTINCT TX_HASH) AS optimism_txs_per_day,
COUNT(DISTINCT FROM_ADDRESS) AS optimism_activeaddrs_per_day
FROM optimism.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= {{start_date}}
GROUP BY 1
),
arb AS
(
SELECT
DATE_TRUNC('day', BLOCK_TIMESTAMP) AS day,
COUNT(DISTINCT TX_HASH) AS arbitrum_txs_per_day,
COUNT(DISTINCT FROM_ADDRESS) AS arbitrum_activeaddrs_per_day
FROM arbitrum.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= {{start_date}}
GROUP BY 1
),
pol AS
(
SELECT
DATE_TRUNC('day', BLOCK_TIMESTAMP) AS day,
COUNT(DISTINCT TX_HASH) AS polygon_txs_per_day,
COUNT(DISTINCT FROM_ADDRESS) AS polygon_activeaddrs_per_day
Run a query to Download Data