FAQ & Articles


When should I use Ternoa-JS getters or Indexer queries to get on-chain data?

Ternoa-JS SDK facilitates interaction with Ternoa chain, it offers the possibility of retrieving stored on-chain data and chain constants. However, it is still preferable to use the Indexer for data fetching for several reasons.

First, you will be able to query specific data by combining Indexer's filters and sorting options.

Then even if you want to retrieve data from a particular NFT for example, it is still best to use the Indexer to avoid overloading the chain.

What are the differences between the Dictionary and the Indexer?

Both tools scan through each block and their events to see what happened on the Ternoa chain: they listen, parse, and record data into a database. The main two differences are:

  • Dictionary deals with native substrate on-chain data like blocks, extrinsics, and events.

  • Indexer deals with specific Ternoa on-chain data based on our designed pallets. For example, all data related to NFTs and collections are neatly recorded in the Indexer.

Indexer uses Dictionary in its project.yaml configuration file to drastically improve the overall indexing performance and reduce synchronization time.


Below is a list of tech articles about Ternoa. If you have written a blog post or tutorial that mentions Ternoa, feel free to add it here!

Maintainer Articles

Community Articles

Last updated