back to top

Introducing Querying on Dune Analytics: A Beginner’s Guide

Getting Started with Dune Analytics: A Practical Guide for Crypto Researchers

By [Your Publication] – March 4 2026


What is Dune Analytics?

Dune Analytics is a cloud‑based platform that turns raw Ethereum blockchain data into searchable SQL tables. By aggregating transaction logs, ERC‑20 events, price feeds and DEX trade records, Dune lets anyone—from hobbyist traders to institutional analysts—run ad‑hoc queries without maintaining a full node or writing custom scripts.

The service is widely used to answer questions such as “How many unique users interact with a protocol?” or “What is the daily trading volume on a decentralized exchange?” Its visualisation tools also let users turn query results into charts and dashboards that can be embedded in reports or shared publicly.


Why It Matters for the DeFi Ecosystem

Historically, extracting on‑chain metrics required bespoke tooling and deep engineering know‑how. The barrier to entry limited data‑driven insights to a small subset of developers. Dune lowers that barrier by:

  • Providing pre‑populated tables (e.g., ethereum.transactions, erc20.ERC20_evt_Transfer, prices.layer1_usd) that are continuously updated.
  • Offering a familiar SQL interface, making it accessible to analysts who already know relational databases.
  • Enabling rapid prototyping of dashboards, which accelerates research, product development, and community reporting.

The democratisation of blockchain analytics is fostering a more transparent DeFi landscape, where market participants can verify claims and track trends in near real‑time.


Getting Your Feet Wet: A Step‑by‑Step Overview

Below is a concise roadmap for newcomers, distilled from a recent guest post by blockchain researcher Alex Manuskin (originally published on Medium and now updated for Dune’s blog).

Step What to Do Key Concepts
1. Register Create a free Dune account. The free tier unlocks query editing, saving and public visualisation.
2. Explore Existing Queries Use the search bar to discover public dashboards and queries. You can fork or adapt any public query as a starting point.
3. Write a Simple Query Open the query editor and run a basic SELECT on ethereum.transactions. Example:
SELECT block_time, value/1e18 AS eth_amount FROM ethereum.transactions LIMIT 5;
value is stored in Wei, so dividing by 1e18 converts to ETH.
4. Filter by Time Add a WHERE clause to focus on recent data, e.g., WHERE block_time > now() - interval '10 days'. Reduces query runtime and targets the period of interest.
5. Aggregate Data Use functions like SUM, AVG, or COUNT together with GROUP BY. Example:
SELECT date_trunc('day', block_time) AS day, SUM(value/1e18) AS daily_eth FROM ethereum.transactions WHERE block_time > now() - interval '30 days' GROUP BY day ORDER BY day;
date_trunc extracts the day component, enabling daily totals.
6. Join Price Tables Combine transaction data with price feeds:
JOIN prices.layer1_usd p ON p.minute = date_trunc('minute', e.block_time).
Allows conversion of ETH amounts into USD for valuation analysis.
7. Visualise Click “Visualise” and pick a chart type (line, bar, heatmap). Dune automatically labels axes based on column aliases.
8. Save & Share Save the query and embed the resulting chart in a public dashboard. Dashboards can be made public, copied, or embedded in external sites.

A short video walk‑through (available on YouTube) demonstrates the same workflow, which is helpful for visual learners.


Core Tables Available on the Free Tier

  • ethereum.transactions – Every transaction on the Ethereum mainnet, with columns for sender, receiver, value, gas, and timestamp.
  • ethereum.logs – Event logs emitted by smart contracts (e.g., ERC‑20 Transfer events).
  • erc20.ERC20_evt_Transfer – A distilled view of token transfer events across all ERC‑20 contracts.
  • prices.layer1_usd – Minute‑resolution price data for ETH and a range of popular tokens.
  • dex.trades – Aggregated trade data from major decentralized exchanges.

These tables provide a solid foundation for a broad array of analytical needs, from protocol usage metrics to market‑wide volume studies.


Analysis: What This Means for Analysts and Projects

  1. Speed to Insight – With SQL queries executing in seconds, analysts can iterate rapidly, testing hypotheses without waiting for lengthy data pipelines.
  2. Community‑Driven Knowledge – Public dashboards become reusable assets. A query built to track DEX volume can be forked to monitor a new protocol, reducing duplicate effort.
  3. Lowered Technical Barriers – Teams without dedicated blockchain engineers can still produce credible on‑chain analytics, narrowing the gap between data‑rich and data‑poor projects.
  4. Potential Risks – Free‑tier queries are limited in compute resources; complex joins or very large time windows may exceed quotas, prompting a move to paid plans for heavy users.

Overall, Dune’s approachable interface is accelerating the maturation of DeFi research, encouraging more rigorous, data‑backed decision‑making across the ecosystem.


Key Takeaways

  • Dune Analytics transforms raw Ethereum data into ready‑to‑query SQL tables, making on‑chain analysis accessible to anyone with a basic understanding of SQL.
  • The free tier offers essential tables and visualization tools, sufficient for most introductory projects and exploratory research.
  • A simple workflow—register, explore, write a query, filter, aggregate, join price data, visualize, and share—gets users from zero to a functional dashboard in minutes.
  • The platform’s public query library and community dashboards foster collaborative knowledge sharing, while paid tiers provide higher compute limits for power users.
  • For DeFi developers, investors, and analysts, Dune is now a go‑to source for transparent, real‑time blockchain metrics, driving more informed market participation.

Prepared by the editorial team at [Your Publication]. For the full original tutorial, see Alex Manuskin’s Medium post and the accompanying video tutorial.



Source: https://dune.com/blog/get-started-guide

spot_img

More from this stream

Recomended