jackguy2023-07-14 05:41 PM
Updated 2023-07-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
›
⌄
SELECT
date_trunc('day', block_timestamp) as day,
'Arbitrum' as chain,
count(DISTINCT ORIGIN_FROM_ADDRESS) as users,
count(DISTINCT tx_hash) as swaps
FROM arbitrum.core.ez_dex_swaps
WHERE block_timestamp > '2022-01-01'
GROUP BY 1,2
UNION
SELECT
date_trunc('day', block_timestamp) as day,
'Ethereum' as chain,
count(DISTINCT ORIGIN_FROM_ADDRESS) as users,
count(DISTINCT tx_hash) as swaps
FROM ethereum.core.ez_dex_swaps
WHERE block_timestamp > '2022-01-01'
GROUP BY 1,2
UNION
SELECT
date_trunc('day', block_timestamp) as day,
'Polygon' as chain,
count(DISTINCT ORIGIN_FROM_ADDRESS) as users,
count(DISTINCT tx_hash) as swaps
FROM polygon.core.ez_dex_swaps
WHERE block_timestamp > '2022-01-01'
GROUP BY 1,2
UNION
Run a query to Download Data