You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When extracting data from the chain It's possible to call GetTransactions one by one for every block in the chain, but this is actually very slow - especially when trying to sync with the network. Most likely the slowdown is due to the round-trip time of having to fetch an entire Tendermint Block for each call.
It would be awesome to have something like a WatchTransactions endpoint that can quickly forward transactions as they're being processed.
ISSUE TYPE
Feature Idea
COMPONENT NAME
I think this would apply to the consensus module, where the GetTransactions API method is currently exposed.
ADDITIONAL INFORMATION
For my current use-case, I want to process all transactions on the chain from initial sync in order to extract information and perform analytics. This is too slow using the GetTransactions endpoint.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, I think this should be easy to add.
Depending on your use case, you could also use GetEvents of the corresponding service (e.g., staking) if you are only interested in events resulting from transactions and block processing and you don't need full transaction data.
kostko
changed the title
Add a WatchTransactions API call.
Add a WatchTransactions API call
May 27, 2020
Main problem there is that there's no height/transaction hash or anything of that kind coming back from those calls which makes them mostly useless for my use-case. I'm trying to index data on the chain. The Watch* APIs don't cover quite a few transactions as well.
SUMMARY
When extracting data from the chain It's possible to call
GetTransactions
one by one for every block in the chain, but this is actually very slow - especially when trying to sync with the network. Most likely the slowdown is due to the round-trip time of having to fetch an entire Tendermint Block for each call.It would be awesome to have something like a
WatchTransactions
endpoint that can quickly forward transactions as they're being processed.ISSUE TYPE
COMPONENT NAME
I think this would apply to the consensus module, where the
GetTransactions
API method is currently exposed.ADDITIONAL INFORMATION
For my current use-case, I want to process all transactions on the chain from initial sync in order to extract information and perform analytics. This is too slow using the
GetTransactions
endpoint.The text was updated successfully, but these errors were encountered: