Skip to content
Dune Analytics

@rchen8 / Total DeFi users over time

Total DeFi users over time

Users = unique addresses. Since a user can have multiple addresses the numbers below are overestimates. Source: @richardchen39

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 = 'Uniswap'
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 = 'Uniswap'
18         GROUP BY 2
19         UNION SELECT date_trunc('day', min(evt_block_time)) AS date,
20                      provider AS account
21         FROM uniswap."Exchange_evt_AddLiquidity"
22         GROUP BY 2
23         UNION SELECT date_trunc('day', min(call_block_time)) AS date,
24                      "to" AS account
25         FROM uniswap_v2."Router01_call_addLiquidity"...

SQL query results

Users = unique addresses. Since a user can have multiple addresses the numbers below are overestimates. Source: @richardchen39

Loading