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
Copy
Ask AI
--Query to get Ethereum's unique daily active users and passive users in 2023SELECT--truncate time to daydate_trunc('day', block_time) AS time,-- count distinct addresses that sent a transactionsCOUNT(distinct "from") AS users,-- count distinct addresses that received a transactionCOUNT(distinct "to") AS receiving_addressesFROM ethereum.transactionsWHERE block_time > DATE '2023-01-01'GROUP BY 1
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 0ato make the numbers more readable.
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.