graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.9k stars 967 forks source link

Feature Request: `handleTransaction` #3687

Open msgul opened 2 years ago

msgul commented 2 years ago

Do you want to request a feature or report a bug? Feature request.

Currently, there is handleBlock, which allows us to trigger on all incoming blocks in subgraphs, but is it possible to add a trigger for all transactions? (like handleTransaction) In this way, all blocks, transactions and addresses on the network can be indexed, so it will be possible to create explorers (like etherscan) on evm-based chains (if it is not possible to add them as a cli command as mentioned in #297). In addition, if the feature mentioned in #1211 is added, transaction information can be retrieved from the block and this feature may not be needed.

azf20 commented 2 years ago

Hi! Yes this is a good request - transaction information is non trivial to fetch from the RPC, but with the addition of an Ethereum Firehose as a data source, this should become much more immediately feasible @maoueh

kumar8317 commented 1 year ago

@azf20 is there any update on this Feature-handleTransaction , so that all transactions can be indexed, if not is there a workaround we can do in subgraph to acheive this?

azf20 commented 1 year ago

hey @kumar8317 - we have made significant progress with the Firehose integration, but this data is also available directly using https://substreams.streamingfast.io/. What is your use case?

kumar8317 commented 1 year ago

@azf20 Our use case is to index all transactions (including native coin transfers) on a custom evm type chain and then do further processing. If this can be done, could you direct me to a doc/tutorial on how to achieve this