Hello everyone, don’t judge strictly, I’m newbie in TON, I came for help and advice from experienced people.

I'm going to write my own indexer in node js.
My goal is to receive blocks and shards in real time - find transactions in them associated with my addresses and save these transactions in the database.

I am now stuck on the question of which protocol and data source should I choose for this purpose.

ADNL or toncenter API v2 or v3 or ton-api?

2) Is it correct to say that the main method of communication between TON nodes is ADNL?
And if so, then this protocol will be the most suitable for my task since I, having a list of nodes(https://ton.org/global.config.json), will be able to query them directly about blockchain data.

3) Which library is better to use ton-web or ton-org/ton?

4) Also, after indexing the data, I would like to check it using third-party sources (for example, I get all the data from ADNL and then check it on the toncenter) or does this make no sense?

Jan 16, 2024, 6:06 PM
ton-lite-client package

listBlockTransactions has args.mode and by default it == 1 + 2 + 4. Why so? And is ther mode for listBlockTransactions returns full transaction object (instead of only tx hash by default?)
Jan 17, 2024, 12:05 AM
Toncenter v3 is already indexer. Tonapi has some part of indexer open sourced.
I don't understand your problem with ton lite client. Just use get Full Block and index every block if you want. But js is not the best Lang for indexing entire blockhain
Jan 17, 2024, 12:07 AM
Thanks for your reply. My last question was about the 'mode' parameter in ADNL.listBlockTransactions query, how it works, and what modes exists?
Jan 17, 2024, 12:10 AM
Have you checked block.tlb?
Jan 17, 2024, 12:11 AM
No, thanks, I'll check
Jan 17, 2024, 12:12 AM

© 2024 Draquery.com All rights reserved.