Skip to content

Commit

Permalink
Update data analytics section (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuva10v authored Jan 8, 2025
1 parent e9f70ad commit 0e53e25
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/v3/guidelines/dapps/apis-sdks/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ The purpose of this article is to help you choose the right tools for applicatio
* [Python](/v3/guidelines/dapps/apis-sdks/sdk#python)
* To integrate user authentication with their TON Wallets (also payments processing logic) into your DApp use [TON Connect](/v3/guidelines/ton-connect/overview).

## TON Statistics analyzer

You may need fast interaction with TON blockchain or collect and analyze its data. For these purposes it may be helpful to run your own [Ton Node](/v3/documentation/infra/nodes/node-types).

* [Liteserver Node](/v3/guidelines/nodes/running-nodes/liteserver-node) - just for interaction with blockchain.
* [Archive Node](/v3/guidelines/nodes/running-nodes/archive-node) - collecting extended historical data of a blockchain.

Use SDKs with native [ADNL](/v3/documentation/network/protocols/adnl/adnl-tcp) support:
* [Go](https://github.com/xssnick/tonutils-go)
* [Python](https://github.com/yungwine/pytoniq)

## TON data analytics

Quite often developers need to perform analytical queries on top of on-chain data: for example to track historical changes and aggregate data from multiple accounts.
Blockchains are not designed for this kind of workload and one need to build indexing pipeline and run analytical queries off-chain. Building such pipelines
from scratch could be resource-consuming so one can use one of the following alternatives:
* [Dune Analytics](https://dune.com/queries?category=canonical&namespace=ton) has a set of tables with TON data: raw transactions and messages, jetton events and DEX trades. Dune allows to build custom charts and dashboard, fetch query results via API and configure alerts. Before starting with writting queries please check [this guide](https://dune.com/ton_foundation/ton-quick-start) for best practices, tips and tricks.
* Dune integration is powered by the Public Data Lake from the [ton-etl](https://github.com/re-doubt/ton-etl/blob/main/datalake/README.md) project. It is a parsing and decoding pipeline
which dumps raw and decode data into S3 bucket __s3://ton-blockchain-public-datalake/v1/__ in AVRO format. The bucket is publicly available and everyone can use it with tools like [Amazon Athena](https://aws.amazon.com/athena/) (see [DDLs](https://github.com/re-doubt/ton-etl/blob/main/datalake/athena_ddl.sql)) or Apache Spark. The data is updated on the daily basis.
* If you need to track on-chain data in near real-time you can run your own [Ton Node](/v3/documentation/infra/nodes/node-types) and launch [ton-etl](https://github.com/re-doubt/ton-etl/blob/main/README.md) or [ton-index-worker](https://github.com/toncenter/ton-index-worker).
* [chainbase](https://docs.chainbase.com/catalog/Ton/Overview) comes with a set of raw and decoded tables with TON data. It allows to run SQL queries and fetch results via API.

## See Also

Expand Down

0 comments on commit 0e53e25

Please sign in to comment.