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

How can I confirm whether a Solana transaction was successful? #246

Open
BillInUK opened this issue Sep 27, 2024 · 3 comments
Open

How can I confirm whether a Solana transaction was successful? #246

BillInUK opened this issue Sep 27, 2024 · 3 comments

Comments

@BillInUK
Copy link

I asynchronously sent a Solana transaction and received a transaction ID (txId), but I want to know the final status of the transaction, including whether it was successful, failed to execute, or discarded.

@BillInUK
Copy link
Author

If the transaction is successful, I can query the transaction using the transaction ID and then parse it to make a judgment. However, if the transaction is discarded, how can I accurately determine that?

@BillInUK
Copy link
Author

BillInUK commented Oct 2, 2024

May I confirm based on the slot of the block I referenced? For example, if the slot of the block I referenced is less than 30 slots behind the current one and I still can't find the transaction, should I consider the transaction as dropped?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@BillInUK and others