The Graph.

帖子

分享您的知识。

TheGraph Mod QST.
Mar 29, 2024
专家问答

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
0
1
分享
评论
.

答案

1
TheGraph Mod ANS.
Mar 29 2024, 23:28

It 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.

0
官方答案
评论
.

你知道答案吗?

请登录并分享。

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.

259帖子258答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。