Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a WatchTransactions API call #2943

Open
Reisen opened this issue May 27, 2020 · 2 comments
Open

Add a WatchTransactions API call #2943

Reisen opened this issue May 27, 2020 · 2 comments
Labels
c:client Category: client interface c:consensus/cometbft Category: CometBFT

Comments

@Reisen
Copy link

Reisen commented May 27, 2020

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

@kostko kostko added c:client Category: client interface c:consensus/cometbft Category: CometBFT labels May 27, 2020
@kostko
Copy link
Member

kostko commented May 27, 2020

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 kostko changed the title Add a WatchTransactions API call. Add a WatchTransactions API call May 27, 2020
@Reisen
Copy link
Author

Reisen commented May 27, 2020

Sadly I do, I opened another issue on it: #2944

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:client Category: client interface c:consensus/cometbft Category: CometBFT
Projects
None yet
Development

No branches or pull requests

2 participants