-
bitcoin $87959.907984 USD
1.34% -
ethereum $2920.497338 USD
3.04% -
tether $0.999775 USD
0.00% -
xrp $2.237324 USD
8.12% -
bnb $860.243768 USD
0.90% -
solana $138.089498 USD
5.43% -
usd-coin $0.999807 USD
0.01% -
tron $0.272801 USD
-1.53% -
dogecoin $0.150904 USD
2.96% -
cardano $0.421635 USD
1.97% -
hyperliquid $32.152445 USD
2.23% -
bitcoin-cash $533.301069 USD
-1.94% -
chainlink $12.953417 USD
2.68% -
unus-sed-leo $9.535951 USD
0.73% -
zcash $521.483386 USD
-2.87%
How to use Dune Analytics
Dune Analytics enables users to query, visualize, and share blockchain data across networks like Ethereum and Polygon using SQL.
Jul 16, 2025 at 02:36 am
Introduction to Dune Analytics
Dune Analytics is a powerful blockchain data analysis platform that allows users to query, visualize, and share insights from on-chain data. It supports various blockchains such as Ethereum, Polygon, Optimism, and more. If you're looking to dive into blockchain analytics, Dune Analytics provides the tools necessary to extract meaningful data through SQL queries and dashboards.
This guide will walk you through how to use Dune Analytics effectively, covering everything from setting up your account to creating custom dashboards and sharing insights with the community.
Setting Up Your Dune Analytics Account
Before you can start querying blockchain data, you need to create an account on Dune Analytics. The process is straightforward:
- Visit https://duneanalytics.com and click on the Sign In button.
- You can sign in using your GitHub or Google account.
- Once logged in, you’ll be redirected to your dashboard where you can start exploring existing dashboards or create your own queries.
After signing in, it’s a good idea to familiarize yourself with the interface. On the homepage, you’ll find trending dashboards, popular queries, and new datasets added by the community.
Understanding the Query Editor
The heart of Dune Analytics lies in its SQL-based query editor. To access it:
- Click on the New Query button located on the top right of your dashboard.
- Select the blockchain you want to query (e.g., Ethereum, Polygon, etc.).
- A blank query window will open with access to available tables for that chain.
Each blockchain has multiple pre-indexed datasets that you can query. For example, on Ethereum, you can access tables like ethereum.transactions, ethereum.logs, and smart contract events from major protocols like Uniswap, Aave, and Compound.
To run a basic query:
- Type:
SELECT * FROM ethereum.transactions LIMIT 10 - Click the Run Query button.
- Wait for the results to load — this may take a few seconds depending on the complexity.
You can also explore pre-written queries shared by other users by clicking on the Explore tab at the top of the page.
Creating Custom Dashboards
Once you’ve written one or more queries, you can combine them into a custom dashboard to present data visually:
- After running a query, click on the Save button and give your query a name.
- Go to the Dashboards section and click New Dashboard.
- Add your saved queries to the dashboard by clicking the Add Panel button.
- You can customize each panel by selecting visualization types like bar charts, line graphs, or tables.
For instance, if you’re tracking NFT sales on OpenSea, you could display a line chart showing daily sales volume alongside a table listing recent high-value transactions.
When building dashboards, make sure each panel serves a clear purpose and contributes to telling a coherent story about the data you’re analyzing.
Sharing Queries and Dashboards
One of the most valuable features of Dune Analytics is the ability to share your work with others:
- After saving a query or dashboard, click the Share button.
- Copy the link and distribute it via Twitter, Discord, or any other platform.
- Anyone with the link can view and fork your query to build upon it.
If you’d like to keep your work private initially:
- Toggle the Private switch when saving your query or dashboard.
- Only people with the direct link will be able to view it unless you change the visibility settings later.
Community contributions are encouraged, and many analysts gain recognition by publishing insightful dashboards that track trends like token emissions, protocol usage, or on-chain governance activity.
Advanced Features and Tips
As you become more comfortable with Dune Analytics, you can leverage advanced features to enhance your analysis:
- Use Common Table Expressions (CTEs) to organize complex queries.
- Join multiple tables across different contracts to correlate data.
- Utilize macros and variables to make reusable components.
For example, to analyze gas usage over time, you might write a query like:
WITH gas_data AS (
SELECT
date_trunc('day', block_time) AS day,
AVG(gas_used) AS avg_gas_used
FROM ethereum.transactions
GROUP BY day
)SELECT * FROM gas_data ORDER BY day DESC LIMIT 30;
This query calculates the average gas used per day over the last 30 days on Ethereum. Running such queries helps identify patterns in network congestion and transaction costs.
Additionally, Dune supports Jupyter Notebook integration for those who prefer Python-based analysis. This opens up even more possibilities for statistical modeling and machine learning applications on blockchain data.
Frequently Asked Questions
Q: Can I use Dune Analytics without knowing SQL?A: While it's possible to explore existing dashboards and visualizations without writing SQL, full functionality requires knowledge of SQL to craft custom queries and derive unique insights.
Q: Are all datasets on Dune Analytics free to access?A: Yes, Dune Analytics offers free access to a wide range of indexed blockchain datasets. However, heavy usage or commercial deployment may require contacting their team for enterprise solutions.
Q: How often is the data updated on Dune Analytics?A: Data is generally updated in near real-time. Most chains have blocks indexed within minutes, ensuring that your queries reflect the latest on-chain activity.
Q: Is there a way to automate query execution on Dune Analytics?A: Currently, Dune does not offer native automation features like scheduled query runs, but users can manually re-run queries or set up external scripts to fetch results periodically via the API.
Disclaimer:info@kdj.com
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.
- Ilocos Norte's Vibrant Festival Immortalized on New P100 Coin by BSP
- 2026-02-02 21:55:01
- LBank Elevates DeFi with GOLDEN FI (GLINK) Listing, Bridging Real-World Assets to the Blockchain
- 2026-02-02 21:30:02
- Beyond the HODL: Prediction Markets and Sports Betting Steal Bitcoin's Spotlight
- 2026-02-02 21:45:01
- Zama Lists on Multiple Exchanges, Airdrop Window Opens Amidst Strong Auction Performance
- 2026-02-02 19:05:01
- Bitcoin's Plunge Spurs Whale Activity Amidst Liquidity Crunch: A New York Take
- 2026-02-02 19:10:02
- Token Market Evolution: Digital Finance and RIV Files Usher in Era of Institutional Trust
- 2026-02-02 19:05:01
Related knowledge
What is the future of cryptocurrency and blockchain technology?
Jan 11,2026 at 09:19pm
Decentralized Finance Evolution1. DeFi protocols have expanded beyond simple lending and borrowing to include structured products, insurance mechanism...
Who is Satoshi Nakamoto? (The Creator of Bitcoin)
Jan 12,2026 at 07:00am
Origins of the Pseudonym1. Satoshi Nakamoto is the name used by the individual or group who developed Bitcoin, authored its original white paper, and ...
What is a crypto airdrop and how to get one?
Jan 22,2026 at 02:39pm
Understanding Crypto Airdrops1. A crypto airdrop is a distribution of free tokens or coins to multiple wallet addresses, typically initiated by blockc...
What is impermanent loss in DeFi and how to avoid it?
Jan 13,2026 at 11:59am
Understanding Impermanent Loss1. Impermanent loss occurs when the value of tokens deposited into an automated market maker (AMM) liquidity pool diverg...
How to bridge crypto assets between different blockchains?
Jan 14,2026 at 06:19pm
Cross-Chain Bridge Mechanisms1. Atomic swaps enable direct peer-to-peer exchange of assets across two blockchains without intermediaries, relying on h...
What is a whitepaper and how to read one?
Jan 12,2026 at 07:19am
Understanding the Whitepaper Structure1. A whitepaper in the cryptocurrency space functions as a foundational technical and conceptual document outlin...
What is the future of cryptocurrency and blockchain technology?
Jan 11,2026 at 09:19pm
Decentralized Finance Evolution1. DeFi protocols have expanded beyond simple lending and borrowing to include structured products, insurance mechanism...
Who is Satoshi Nakamoto? (The Creator of Bitcoin)
Jan 12,2026 at 07:00am
Origins of the Pseudonym1. Satoshi Nakamoto is the name used by the individual or group who developed Bitcoin, authored its original white paper, and ...
What is a crypto airdrop and how to get one?
Jan 22,2026 at 02:39pm
Understanding Crypto Airdrops1. A crypto airdrop is a distribution of free tokens or coins to multiple wallet addresses, typically initiated by blockc...
What is impermanent loss in DeFi and how to avoid it?
Jan 13,2026 at 11:59am
Understanding Impermanent Loss1. Impermanent loss occurs when the value of tokens deposited into an automated market maker (AMM) liquidity pool diverg...
How to bridge crypto assets between different blockchains?
Jan 14,2026 at 06:19pm
Cross-Chain Bridge Mechanisms1. Atomic swaps enable direct peer-to-peer exchange of assets across two blockchains without intermediaries, relying on h...
What is a whitepaper and how to read one?
Jan 12,2026 at 07:19am
Understanding the Whitepaper Structure1. A whitepaper in the cryptocurrency space functions as a foundational technical and conceptual document outlin...
See all articles














