TONalytica: Quickstart
TONalytica is a web-based platform that allows you to query TON blockchain data and aggregate it into beautiful dashboards.
TON is open and transparent, but TVM blockchains are unique — making it difficult to understand, ingest, and aggregate data. TONalytica gives you the proper tools to analyze cross-chain data for different tokens, wallets, and protocols. You can also easily share your work with the community.
Welcome to TONalytica
This guide will help you get started on TONalytica in five minutes. We’ll walk you through how to:
- Query blockchain data
- Create a visualization
- Present your data
TONalytica has many more features, but these are the basics you’ll need to get started. If you’re looking for more advanced guides, check out the documentation.
Prerequisites:
- You’ll need to have a TONalytica account to follow along. If you don’t have one, you can sign up here. Authorisation exclusively via GitHub.
- We also recommend you have a basic understanding of SQL and Blockchain concepts.
1. Query blockchain data
To query for blockchain data on TONalytica you’ll need to:
- Create a new query
- Write some SQL
- Run the query
- Name and save the query
- DEX stat: unique users overall and swaps per user
select
platform,
count(distinct swap_user) as unique_users,
1.0 * count(distinct msg_id) / count(distinct swap_user) as swaps_per_user
from
redoubt.dex_swaps
group by
1
2. Create a visualization
To create a visualization you’ll need to:
- Create a new visualization
- Select the type of visualization you want to create
- Choose the data source for the x and y axis
- Adjust the visualization settings
In our example below, we’ll create a pie chart to visualize unique users overall across DEXes at a moment in time.
Direct link to pie chart here.
3. Present your data
To present your data you’ll need to:
- Create a new dashboard
- Add visualization to the dashboard
- Adjust the layout of the dashboard
- Name and save the dashboard
Direct link to dashboard here.
Recap
Congratulations, you’ve just queried blockchain data, created a visualization, and presented your data on TONalytica!
You can now share your dashboard with the world.
We’ll take care of updating this dashboard whenever somebody looks at it, so you don’t have to worry about keeping it up to date.
TON Buidlers!
Join our community on Telegram or Twitter, to stay up to date with the latest news, announcements, and exciting developments. Connect with like-minded individuals, engage in discussions, and be part of a growing community shaping the safe future of TVM blockchains.
Stay tuned and be among the first to know when we go live!