Pothu Profile picture
Jul 27 32 tweets 10 min read
Dune Analytics might be the best place to find real-time alpha for free.

It’s home to thousands of free dashboards that display crypto data.

When used correctly, this data can make you rich.

Here’s your guide to Dune Analytics 🧵
Dune Analytics makes it easy to view and understand on-chain data.

In this guide I’ll cover:
• Community dashboards
• Extracting data with queries
• Creating visualizations
• Creating your own dashboard
1. Community dashboards

The easiest way to use Dune is to look at dashboards that others have created.

You can search for specific dashboards and filter them with tags such as DeFi, NFTs, and Ethereum.
When you’re looking for information about a specific project, dashboards and queries by other Dune users are probably the best places to start.

Take a look at all the Uniswap dashboards available:
Let’s take a look at a DEX metrics dashboard by @hagaetc.

We can see some useful stats about DEXs.

There are also some great charts and visualizations related to DEX volume and market share.
You can select an individual query in a dashboard to view more information about it.

Let’s take a look at the Market share one:
We now see more information about the query.

We can see the query's PostgresSQL code.

We can also see the associated views with the query.
You can run the query to get updated metrics on the dashboard.

You can also fork the dashboard.

Forking will allow you to edit the query, fine tuning it to your requirements.
2. Extracting data with queries

Dune aggregates blockchain data into SQL databases.

SQL is a common database system. It’s a popular tool. Many large companies use it.

Users can query on-chain data using PostgreSQL (a simple coding language that lets you access SQL databases).
Here are some PostgreSQL basics:

SQL databases are organized into rows and columns (like spreadsheets).

Each row signifies a different data record. For DEXs different rows could be Uniswap or Curve.

Columns are data values of a particular type such as price or volume.
Each query returns rows or columns of data.

When creating visualizations, querying columns are most common.

Most queries are in the form:
With SELECT, we choose some data (here, we are choosing the “columnName”) FROM a table (a collection of data).

For Dune, each table contains information about a project, protocol, or chain.

Optionally, we can specify a LIMIT. This limits how many rows or columns are returned.
We can also specify a condition using WHERE. Only data records that fulfill the condition are extracted.

It’s essentially a filter.

A common use of this is to specify a contract address.

Note that names and values are case sensitive in PostgresSQL.
Let’s take a look at a simple query.

We’re going to look at the 7 days DEX volume query.
The query extracts the usd_amount column from the dex.”trades” table.

It then applies an operation to the columns we’re selecting.

It adds all the values from the column together.

This is then converted to billions. AS is used to specify a variable name for this value.
The condition narrows down the data the query extracts. Only transactions from the past week are considered.

AND is used to chain conditions. Here the second condition is the category of transaction.

Only DEX transactions.
To summarize, the query is looking at the usd amount of all DEX transactions from the past week.

This is added together and converted to billions, and displayed as a single number.
It’s good to know how queries work, but you’re rarely going to build queries from scratch.

Usually, you’ll fork someone else's query and edit it.

Dune also maintains a list of abstractions (custom tables). These abstractions give users access to more complex SQL operators.
All the abstractions are stored in a GitHub repository.

The repo is a huge collection of SQL scripts that you can build off of.

Here’s the link to the abstraction repo:

github.com/duneanalytics/…
PostgreSQL is really popular, and there are a lot of great resources out there.

The official documentation is a great place to start:

postgresql.org/docs/12/index.…

FreeCodeCamp’s crash course is great too:

3. Creating visualizations

Query results are usually hard to analyze.

Visualizations present query results in a digestible format.

Dune offers several visualization options:
• bar charts
• area charts
• scatter charts
• line charts
• pie charts
• counters
For a given query, you can create visualizations or edit existing ones.

Let’s look at the Monthly DEX Volume By Project query.

It has two visualizations: bar chart and table. You can switch between these views by clicking on them.

You can edit the view here as well.
When you create a visualization you can choose from several options.

Let’s make an pie chart to create a market share visualization.
Now we edit the chart options.

The option below means that we’re creating a pie chart where each section represents a project’s volume in usd.
In the resulting visualization we can see the market share of different DEXs over a specified time period.

This can be extrapolated. By changing a few variables we could see things like smart contract volume across different chains.

The possibilities are endless with Dune.
4. Creating custom dashboards

A dashboard is just a group of queries.

By selecting and displaying related queries together, you can get a much better understanding of a project, protocol, or ecosystem.

If you have queries, creating a custom dashboard is easy.
To start, head over to the Dune homepage and click on New dashboard:
Here you can name the dashboard and create a custom URL.

Dashboards are public by default, but pro users can limit who views their dashboards.
Click on Edit and then Add Visualization.

You have the option to add queries you’ve created as well as queries created by other users.
I added a few visualizations to a dashboard.

I created a dashboard that gives you an overview of the Ethereum NFT market.
Dune makes on-chain data accessible to all.

You can do a lot with Dune. It’s a great collaboration tool.

Dune makes it possible create powerful visualizations very quickly.

By putting the right queries together, you can turn into an on-chain wizard.
There’s a lot more to Dune, and I’ll be posting more guides soon.

If you enjoyed this one:
1. Follow me @cryptoPothu for more.
2. Give this a RT

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Pothu

Pothu Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @cryptoPothu

Jul 25
Where’s the crypto market headed?

Between the Eth merge and macroeconomic conditions, it’s hard to say.

I dove into Chainalysis’ 109 page State of Web3 Report to gain a better understanding.

I read it all so you don’t have to.

Here’s everything you need to know 🧵
The Chainalysis report covers a lot.

Some of the most interesting things it covers are:

• Institutional investment in Web3
• DeFi usage
• DAO statistics
• Web3 and privacy

Keep reading for my takeaways and insights ⬇️
1. People use crypto even when prices are falling

On-chain transaction volume has since leveled off over the past few months.

This is largely due to price declines in Eth and other assets.
Read 24 tweets
Jul 23
Vitalik Buterin says that Ethereum's development is only 55% done after the merge.

At ETHCC, Buterin outlined the 5 main stages of Ethereum's roadmap.

Here's what they look like:
1. The Merge:

Ethereum moves to a Proof of Stake system.

The Merge will reduce Ethereum's energy consumption by ~99.95%.

This is going to be the first step towards an extremely scalable Ethereum.
2. The Surge

Scalability is greatly improved through sharding.

Sharding involves splitting up the network into smaller, faster "shards" that are easier to manage.

After the surge, rollups will be even cheaper and nodes will easier to operate.
Read 6 tweets
Jul 14
99% of people who fail in crypto don’t know how to hunt for alpha.

Goode alpha can make the difference between going broke and life changing gains.

Here’s your guide to alpha hunting 🧵
Alpha hunting comes down to 3 things:

• Researching
• Understanding
• Networking

/2
That's easier said than done.

In this thread I'll explain how to research, understand data, and network to find alpha.

/3
Read 18 tweets
Jul 13
Inflation reached a 40 year high of 9.1% last month.

What does this mean for crypto?

Here's what you need to know:
A 9.1% inflation rate is crazy.

Inflation has been rising for months, and the Fed has been trying to get it under control.
The Fed has been trying to get inflation under control by raising interest rates.

We're going to see interest rates continue to rise and this could be detrimental to markets including crypto.
Read 7 tweets
Jul 13
NFTs don't have to be risky.

It's possible to flip NFTs with a nearly 100% success rate.

Here’s a guide 🧵
Flipping whitelist mints pre-reveal is one of the safest ways to make huge gains if done correctly.

In this guide:

• The strategy
• Identifying flippable projects
• Getting whitelists
• Minimizing risk
• Following the right people
1. The strategy

It’s simple. Mint a decent NFT and sell it at or near the peak of its hype.

Most NFTs reach this point right before the reveal.

After the mint, NFTs tend to go for a premium on Opensea. The goal is to capitalize on this premium.
Read 21 tweets
Jul 11
Learn as much as you can during this bear market.

Crypto Twitter is a great resource, but make sure you’re using it correctly.

Here’s how to maximize your Twitter Alpha:
In this guide:

• Finding people to follow
• Identifying good content
• Using Lists
• Twitter Notifications
• Bookmarks
1. Finding people to follow

If you have friends in crypto start there.

Ask them who to follow.

If you find a solid account look at who they follow.
Read 21 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(