datavortexTransaction Growth
Updated 2024-10-31
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 WeeklyTransactions AS (
-- Arbitrum Blockchain transactions
SELECT
DATE_TRUNC('week', block_timestamp) AS TimeLine,
COUNT(DISTINCT tx_hash) AS TransactionCount,
'Arbitrum' AS Blockchain
FROM arbitrum.defi.ez_dex_swaps
WHERE symbol_in = 'USDC'
OR symbol_out = 'USDC'
GROUP BY TimeLine
UNION ALL
-- Base Blockchain transactions
SELECT
DATE_TRUNC('week', block_timestamp) AS TimeLine,
COUNT(DISTINCT tx_hash) AS TransactionCount,
'Base' AS Blockchain
FROM base.defi.ez_dex_swaps
WHERE symbol_in = 'USDC'
OR symbol_out = 'USDC'
GROUP BY TimeLine
UNION ALL
-- Solana Blockchain transactions
SELECT
DATE_TRUNC('week', block_timestamp) AS TimeLine,
COUNT(DISTINCT tx_id) AS TransactionCount,
'Solana' AS BlockChain
FROM solana.defi.ez_dex_swaps
WHERE swap_from_symbol = 'USDC'
OR swap_from_symbol = 'USDC'
GROUP BY TimeLine
)
QueryRunArchived: QueryRun has been archived