The Graph.

Post

Share your knowledge.

TheGraph Mod QST.
Mar 29, 2024
Expert Q&A

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
Share
Comments
.

Answers

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
Official Answer
Comments
.

Do you know the answer?

Please log in and share it.

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.

259Posts258Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.