Bài viết
Chia sẻ kiến thức của bạn.
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
Câu trả lời
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.
Bạn có biết câu trả lời không?
Hãy đăng nhập và chia sẻ nó.
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.
Kiếm phần của bạn từ 1000 Sui
Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.