Skip to content
Discussion options

You must be logged in to vote
const response = await this.client.waitForTransactionWithResult(transactionResult.hash);

This returns the transaction details with the reason of failure

A side note: I suspect you are using the legacy TS SDK version - you might want to start using the new version https://aptos.dev/en/build/sdks/ts-sdk

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Alexzander-Stone
Comment options

You must be logged in to vote
1 reply
@ajaythxkur
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ts-sdk Questions related to the TypeScript SDK
2 participants