eferPolygon - Daily Transactions and Unique Addresses
Updated 2023-04-13
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
BLOCK_TIMESTAMP :: date AS date,
COUNT(DISTINCT FROM_ADDRESS) AS unique_addresses,
SUM(unique_addresses) OVER(
ORDER BY
date ROWS BETWEEN UNBOUNDED PRECEDING
AND CURRENT ROW
) AS cumulative_addresses,
COUNT(TX_HASH) AS transactions,
SUM(transactions) OVER(
ORDER BY
date ROWS BETWEEN UNBOUNDED PRECEDING
AND CURRENT ROW
) AS cumulative_transactions,
AVG(transactions) OVER (
ORDER BY
date ROWS BETWEEN 5 PRECEDING
AND CURRENT ROW
) AS transactions_MA5,
SUM(TX_FEE) AS fees_paid,
AVG(TX_FEE) AS average_fee,
SUM(fees_paid) OVER(
ORDER BY
date ROWS BETWEEN UNBOUNDED PRECEDING
AND CURRENT ROW
) AS cumulative_paid_fees
FROM
polygon.core.fact_transactions
WHERE
date >= '2022-07-01'
AND date < CURRENT_DATE
GROUP BY
date
ORDER BY
date DESC
Run a query to Download Data