TERNOA Documentation
Learn Build
  • What is Ternoa Chain ?
  • SPECS
    • Polygon CDK zkEVM
    • Polygon AggLayer
    • Avail DA
    • Trusted Execution Environments 
  • BUILD
    • Wallets
    • RPC
    • API
    • Explorer
  • Tools
    • Staking
    • Ternoa Safe
    • TIP
  • Community
    • Ternoa.com
    • Github
    • Discord
    • Twitter
    • Medium
Powered by GitBook
On this page
  1. GETTING STARTED
  2. Javascript SDK
  3. Ternoa indexer
  4. Dictionary

Make queries on the dictionary

Last updated 1 year ago

Use the dictionary as an explorer

The main interest of the dictionary is to have a middleman database between the blockchain and the indexer. Again, this database will allow the indexer to query block metadata directly from the dictionary. This means that if we want to get only NFT creation events, the indexer will ask the dictionary for the corresponding blocks. (So, for example, instead of fetching blocks 0 to 100, it will fetch only the numbers 5, 16, and 94 because that’s where NFTs are created.)

Another use of the dictionary is to record all generic data that can be used for an explorer. For example, block, transaction (extrinsic), and event data. This data is then used to display chain information. (See the ) You can also compare the basic dictionary template provided by the Subquery team and the dictionary used by Ternoa which also records data for its explorer.

will work the same as the Indexer. You will be able to perform queries the same as you do on the indexer, with the same syntax.

ternoa scan
Subquery dictionary template
Ternoa dictionary
The dictionary playground