Dune Analytics: A Powerful Blockchain Analytics Tool

Yash KavaiyaYash Kavaiya
2 min read

Dune is a web-based platform that allows you to query open blockchain data and create it into interactive live dashboards.

Dune Analytics is a powerful blockchain analytics tool that allows users to analyze and share data from Ethereum, Bitcoin, Polygon, BNB Chain, Solana, Avalanche, Optimism, Fantom and Gnosis Chain. Dune is a community-driven platform, meaning that anyone can create data visualizations and dashboards. This makes Dune an incredibly versatile tool for anyone who wants to learn more about the blockchain ecosystem.

What can you do with Dune Analytics?

  • Track the performance of DeFi protocols

  • Analyze NFT sales data

  • Monitor the activity of DEX

  • Explore the on-chain data of any public blockchain project

How to get started with Dune Analytics

To get started with Dune Analytics, you'll need to create an account. Once you've created an account, you can start exploring the data that's already been shared by the community. You can also create your own data visualizations and dashboards by using Dune's SQL-like query language.

SELECT
    new_users_table.time,
    new_users AS New,
    (unique_users - new_users) AS Existing
FROM (
    SELECT
        unique_users_table.time,
        COUNT(*) AS new_users
    FROM (
        SELECT 
            signer as unique_users,
            MIN(block_date) AS time
        FROM 
            solana.transactions
        WHERE
            block_date >= (CURRENT_DATE - '60 days'::INTERVAL)
            AND block_date < CURRENT_DATE
            AND account_keys[1] = "STEPNq2UGeGSzCyGVr2nMQAzf8xuejwqebd84wcksCK"
            AND size(account_keys) = 3
            AND error is NULL
        GROUP BY 
            signer
    ) unique_users_table
    GROUP BY
        unique_users_table.time
    ) new_users_table

LEFT JOIN (
    SELECT
        block_date AS time,
        COUNT(DISTINCT signer) AS unique_users
    FROM 
        solana.transactions
    WHERE 
        block_date >= (CURRENT_DATE - '60 days'::INTERVAL)
        AND block_date < CURRENT_DATE
        AND account_keys[1] = "STEPNq2UGeGSzCyGVr2nMQAzf8xuejwqebd84wcksCK"
        AND size(account_keys) = 3
        AND error is NULL
    GROUP BY 
        time
) table2 ON table2.time = new_users_table.time

ORDER BY
    1 DESC

Here are some of the features of Dune Analytics:

  • Community-driven: Dune is a community-driven platform, meaning that anyone can create and share their own data visualizations and dashboards. This makes Dune Analytics a versatile tool for anyone who wants to learn more about the blockchain ecosystem.

  • Free: Dune Analytics is completely free to use. There are limits to API uses.

  • Easy to use: Dune Analytics is easy to use, even for beginners. The platform has a user-friendly interface and a powerful query language that makes it easy to explore and analyze blockchain data.

  • Powerful: Dune Analytics is a powerful tool that can be used to track the performance of DeFi protocols, analyze NFT sales data, monitor the activity of whales and other large investors, and explore the on-chain data of any blockchain project.

0
Subscribe to my newsletter

Read articles from Yash Kavaiya directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Yash Kavaiya
Yash Kavaiya

I am a data analytics professional with a strong background in programming languages such as Python and SQL. I have experience using tools like Informatica for data integration and manipulation, and I am well-versed in statistical analysis and Excel for data visualization and reporting. I am able to extract insights from large data sets and use them to inform business decisions. I am also able to communicate complex analytical results to non-technical stakeholders in a clear and concise manner. My skills in data analysis, programming, and communication make me an asset to any organization looking to leverage their data to drive growth and efficiency.