Пост
Поделитесь своими знаниями.
How to use Subgraph to Index Transactions and Query by Address
I'm curious to know if it's possible to utilize a subgraph to index all transactions and perform queries based on addresses, rather than relying on listening to events on smart contracts. I would appreciate any insights or guidance on this matter. Thank you in advance for your help!
- GraphQL
- Indexers
- Subgraph
Ответы
1It is not feasible to index EOAs using a subgraph. Subgraphs do not have the capability to index EOAs. However, there is an alternative solution called substreams that you can explore. Substreams allow for the utilization of pre-existing substreams as a source, enabling composition.
To learn more about substreams, you can refer to the official documentation provided by The Graph: Substreams Documentation. Additionally, there is a video available that explains substreams-powered subgraphs, which you may find helpful: Substreams-Powered Subgraphs Video.
If you are interested in seeing some examples of substreams in action, you can visit the following GitHub repository: Substreams Examples.
Знаете ответ?
Пожалуйста, войдите в систему и поделитесь им.
The Graph is a decentralized protocol for indexing and querying blockchain data. The Graph makes it possible to query data that is difficult to query directly.
Заработай свою долю из 1000 Sui
Зарабатывай очки репутации и получай награды за помощь в развитии сообщества Sui.