jackguyUntitled Query
Updated 2023-06-25Copy Reference Fork
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 ethereum as (
SELECT
'Ethereum' as chain,
COUNT(DISTINCT tx_hash) as transactions,
count(DISTINCT FROM_ADDRESS) as active_wallets
FROM ethereum.core.fact_transactions
WHERE block_timestamp > CURRENT_DATE - 1
GROUP BY 1
), solana as (
SELECT
'Solana' as cahin,
COUNT(DISTINCT tx_id) as transactions,
COUNT(DISTINCT signers[0]) as active_wallets
FROM solana.core.fact_transactions
WHERE block_timestamp > CURRENT_DATE - 1
GROUP BY 1
), polygon as (
SELECT
'Polygon' as chain,
COUNT(DISTINCT tx_hash) as transactions,
count(DISTINCT FROM_ADDRESS) as active_wallets
FROM polygon.core.fact_transactions
WHERE block_timestamp > CURRENT_DATE - 1
GROUP BY 1
), avalanche as (
SELECT
'Avalanche' as chain,
COUNT(DISTINCT tx_hash) as transactions,
count(DISTINCT FROM_ADDRESS) as active_wallets
FROM avalanche.core.fact_transactions
WHERE block_timestamp > CURRENT_DATE - 1
GROUP BY 1
), cosmos as (
SELECT
'Cosmos' as chain,
COUNT(DISTINCT tx_id) as transactions,
Run a query to Download Data