Drsimontranactions d
Updated 2022-11-05
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 tx1 AS
(SELECT
DATE_TRUNC('day', block_timestamp) as day,
count(DISTINCT TX_HASH) as num_tx ,
'near' as laybel
FROM NEAR.core.fact_transactions
WHERE day >= '2022-01-01'
GROUP BY 1
order by day desc) ,
tx2 AS
(SELECT
DATE_TRUNC('day', block_timestamp) as day,
count(DISTINCT TX_hash) as num_tx ,
'polygon' as laybel
FROM polygon.core.fact_transactions
WHERE day >= '2022-01-01'
GROUP BY 1
order by day desc) ,
tx3 AS
(SELECT
DATE_TRUNC('day', block_timestamp) as day,
count(DISTINCT TX_HASH) as num_tx ,
'ethereum' as laybel
FROM ethereum.core.fact_transactions
WHERE day >= '2022-01-01'
GROUP BY 1
order by day desc) ,
total as
(select day , num_tx , laybel from tx1
UNION all
select day , num_tx , laybel from tx2
UNION all
select day , num_tx , laybel from tx3)
Run a query to Download Data