title | description |
---|---|
Quickstart |
Get started on Dune in five minutes! |
This guide will help you get started on Dune in five minutes. We'll walk you through how to:
- Query blockchain data
- Create a visualization
- Present your data
Dune has many more features, but these are the basics you'll need to get started. If you're looking for more advanced guides, check out the Analytics Guidelines and Data Tables sections.
Prerequisites:
- You'll need to have a Dune account to follow along. If you don't have one, you can sign up here.
- We also recommend you have a basic understanding of SQL and Blockchain concepts.
To query for blockchain data on Dune you'll need to:
- Create a new query
- Write some SQL
- Run the query
- Name and save the query
--Query to get Ethereum's unique daily active users and passive users in 2023
SELECT
--truncate time to day
date_trunc('day', block_time) AS time,
-- count distinct addresses that sent a transactions
COUNT(distinct "from") AS users,
-- count distinct addresses that received a transaction
COUNT(distinct "to") AS receiving_addresses
FROM ethereum.transactions
WHERE block_time > DATE '2023-01-01'
GROUP BY 1
To create a visualization you'll need to:
- Create a new visualization
- Select the type of visualization you want to create
- Choose the data source for the x and y axis
- adjust the visualization settings
In our example below, we'll create a line chart to visualize the number of unique daily active users and passive users on Ethereum in 2023. Additionally, we format the axis label and tick label to 0a
to make the numbers more readable.
To present your data you'll need to:
- Create a new dashboard
- Add a visualization to the dashboard
- Adjust the layout of the dashboard
- Name and save the dashboard
Congratulations, you've just queried blockchain data, created a visualization, and presented your data on Dune!
You can now share your dashboard with the world.
We'll take care of updating this dashboard whenever somebody looks at it, so you don't have to worry about keeping it up to date.
Check out these resources to learn more about Dune:
-
Dune Official Getting Started Video Series to learn how the data flows and how to navigate the Dune app to create queries, visualizations, and dashboards.
-
All Ethereum and SQL Basics to learn all the basic SQL concepts and Ethereum tables you'll need in your analysis.
-
For pure SQL practice, try going through the "easy" problems on hackerrank.
Join the community and learn together in Discord by participating in the #🐥︱beginners
and #🙋︱query-questions
channels