KARTODUnique Addresses, Txs on EVM blockchains
Updated 2023-09-16
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 time_,
'Ethereum' AS chain,
COUNT(distinct TX_HASH) AS txs,
COUNT(distinct FROM_ADDRESS) AS from_address
FROM ethereum.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= DATE_TRUNC('day',CURRENT_DATE()) - interval '90 days'
AND BLOCK_TIMESTAMP < DATE_TRUNC('day',CURRENT_DATE())
GROUP BY 1
UNION ALL
SELECT
date_trunc('day', BLOCK_TIMESTAMP) AS time_,
'BSC' AS chain,
COUNT(distinct TX_HASH) AS txs,
COUNT(distinct FROM_ADDRESS) AS from_address
FROM bsc.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= DATE_TRUNC('day',CURRENT_DATE()) - interval '90 days'
AND BLOCK_TIMESTAMP < DATE_TRUNC('day',CURRENT_DATE())
GROUP BY 1
UNION ALL
SELECT
date_trunc('day', BLOCK_TIMESTAMP) AS time_,
'Arbitrum' AS chain,
COUNT(distinct TX_HASH) AS txs,
COUNT(distinct FROM_ADDRESS) AS from_address
FROM arbitrum.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= DATE_TRUNC('day',CURRENT_DATE()) - interval '90 days'
AND BLOCK_TIMESTAMP < DATE_TRUNC('day',CURRENT_DATE())
GROUP BY 1
UNION ALL
Run a query to Download Data