Skip to content
Dune Analytics

@rchen8 / Total Synthetix users over time

Total Synthetix users over time

Loading
 

About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query

1SELECT date, sum(users) OVER (
2                              ORDER BY date ASC ROWS BETWEEN unbounded preceding AND CURRENT ROW) AS total_users
3FROM
4  (SELECT date, count(USER) AS users
5   FROM
6     (SELECT min(date) AS date,
7             account AS USER
8      FROM
9        (SELECT date_trunc('day', min(block_time)) AS date,
10                trader_a AS account
11         FROM dex."trades"
12         WHERE project = 'Synthetix'
13         GROUP BY 2
14         UNION SELECT date_trunc('day', min(block_time)) AS date,
15                      trader_b AS account
16         FROM dex."trades"
17         WHERE project = 'Synthetix'
18         GROUP BY 2
19         UNION SELECT date_trunc('day', min(evt_block_time)) AS date,
20                      account
21         FROM synthetix."Synth_evt_Issued"
22         GROUP BY 2) AS a
23      GROUP BY 2) AS b
24   GROUP BY 1
25   ORDER BY 1) AS c

SQL query results

Loading