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 "Confirm Transaction" functionality #3

Open
bgreni opened this issue Jan 17, 2024 · 0 comments
Open

Add "Confirm Transaction" functionality #3

bgreni opened this issue Jan 17, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@bgreni
Copy link
Owner

bgreni commented Jan 17, 2024

Being able to wait on the result of a transaction is a critical piece of functionality. Based on my inspection of the web3.js code. They implement it roughly as follows.

  • Open a websocket connection to listen for changes in the signature status
  • Send a request to the rpc method in case the transaction has already reached the desired finality and cancel the subscription if so
  • Return the result of the operation
@bgreni bgreni added the enhancement New feature or request label Jan 17, 2024
@bgreni bgreni added this to the MVP milestone Jan 17, 2024
@bgreni bgreni moved this to Backlog in Solana RPC Client Jan 17, 2024
@bgreni bgreni moved this from Backlog to Ready in Solana RPC Client Jan 17, 2024
@bgreni bgreni moved this from Ready to In progress in Solana RPC Client Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

1 participant