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

feat: add various transaction endpoint and track pending transactions #1469

Merged
merged 3 commits into from
Jun 16, 2021

Conversation

ralph-pichler
Copy link
Member

@ralph-pichler ralph-pichler commented Mar 22, 2021

This PR adds a few transaction related endpoints useful for debugging and fixing potential transaction-related issues.

It builds on top of the functionality introduced in #1465 and adds the following debugapi endpoints:

  • GET /transactions to get a list of transactions sent by bee which are neither confirmed nor provably cancelled (in other words "pending")
  • GET /transactions/{hash} to get details for a particular transaction (wether pending or not)
  • POST /transactions/{hash} to resend a transaction to the ethereum backend. This is useful if a pending transaction disappears from the eth network for some reason.

To enable querying which transactions are actually pending, all sent transactions are monitored by default (using the machinery introduced in #1465). To make the output of the endpoints more useful some context has been added to the TxRequest definition.


This change is Reviewable

@ralph-pichler ralph-pichler added the builds on open pr builds on another open one label Mar 22, 2021
@ralph-pichler ralph-pichler self-assigned this Mar 22, 2021
@ralph-pichler ralph-pichler force-pushed the tx_watch_by_nonce branch 2 times, most recently from 144d721 to 4d5efee Compare April 9, 2021 07:37
Base automatically changed from tx_watch_by_nonce to master April 9, 2021 07:53
@zelig zelig removed the builds on open pr builds on another open one label Apr 10, 2021
@ralph-pichler ralph-pichler force-pushed the tx_api branch 2 times, most recently from 02bd0b5 to b415f42 Compare May 20, 2021 08:03
@ralph-pichler ralph-pichler marked this pull request as ready for review June 14, 2021 16:22
@ralph-pichler ralph-pichler added the ready for review The PR is ready to be reviewed label Jun 14, 2021
@ralph-pichler ralph-pichler changed the title debugapi, transaction: add transaction endpoints, watch all transactions by default feat: add various transaction endpoint and track pending transactions Jun 14, 2021
@Eknir
Copy link
Contributor

Eknir commented Jun 15, 2021

Thank you for this PR. Our users will love this one :)

Copy link
Member

@zelig zelig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 15 of 15 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ralph-pichler)

@ralph-pichler ralph-pichler merged commit d2c668e into master Jun 16, 2021
@ralph-pichler ralph-pichler deleted the tx_api branch June 16, 2021 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull-request ready for review The PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants