Make queries on the dictionary
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 ternoa scan) 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.
The dictionary playground 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.
Last updated