This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Dune Analytics Query Builder

Analytics · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryAnalytics
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Dune Analytics Query Builder provides a user-friendly interface for querying blockchain data through Dune's powerful API. Build and execute SQL queries to retrieve token transfers, DEX trades, smart contract interactions, lending positions, governance votes, wallet activity, gas usage statistics, and custom query results. The tool translates your selections into optimized SQL queries and presents the results in a structured, readable format. Export query results as JSON or copy the underlying SQL for use in other tools. This is an essential utility for developers, analysts, and researchers who need to extract and analyze on-chain data without writing complex SQL from scratch or navigating Dune's web interface.

HOW TO USE

1. Connect your Web3 wallet (Ethereum, Polygon, Arbitrum, Optimism, BSC, or any EVM-compatible chain).

2. Select the network that matches your target chain from the dropdown.

3. Choose a query type: token transfers, DEX trades, wallet activity, lending positions, gas usage, or custom SQL.

4. Enter a wallet address or contract address to filter the query results.

5. For custom queries, write your own SQL using Dune's table schemas.

6. Click "build & execute query" to send the request to Dune's API.

7. Review the results displayed in a structured table format.

8. Use the "copy JSON" button to export raw data or "copy SQL" to reuse the query elsewhere.

TECHNICAL MECHANISM

Dune Analytics Query Builder constructs SQL queries dynamically based on your selected query type, network, and address. The tool maintains a mapping of chain IDs to Dune's table names (ethereum, polygon, arbitrum, optimism, bsc) and builds queries using Dune's standardized schema. For predefined query types, the tool generates optimized SQL with appropriate WHERE clauses, ORDER BY statements, and LIMIT constraints to ensure efficient execution. For custom queries, the tool passes your SQL directly to the Dune API without modification. The tool simulates the API request flow, including authentication headers and pagination handling for large result sets. Results are parsed from Dune's JSON response format, with proper type handling for numeric values, timestamps, and blockchain addresses. The tool includes built-in error handling for common SQL syntax issues and API rate limit responses, providing clear feedback to users.

WHAT IT CANNOT SEE

This tool is a frontend for the Dune API — it does not validate data accuracy, verify completeness, or detect inconsistencies between Dune's indexed data and actual on-chain state. The tool cannot guarantee that query results reflect real-time chain state or that Dune's data sources have been indexed correctly. It cannot ensure historical data completeness or detect gaps in Dune's indexing. The tool cannot predict query execution time or API availability, and it cannot handle large result sets beyond Dune's pagination limits. All data is presented as provided by Dune — if the API returns stale, incomplete, or incorrect information, this tool will display it without warning. The tool cannot validate that custom SQL queries are syntactically correct before execution or prevent query timeouts. It cannot export data for non-EVM chains or interact with private networks.

PLEASE NOTE

Dune Analytics Query Builder supports EVM-compatible blockchains only (Ethereum Mainnet, Goerli, Polygon, Arbitrum One, Optimism, BNB Smart Chain, and others via network selection). The tool requires a Dune API key — in this implementation, it uses a simulated key for demonstration purposes. For production use, you must provide your own Dune API key. The tool never submits transactions or signs messages; it is strictly read-only. Query performance depends on Dune's API response times and your network connection. For complex custom queries, result sets may be truncated due to Dune's limits; consider using pagination or limiting result rows.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.