Skip to content

Correct way to catch tx errors #439

Answered by leonardocustodio
poka-IT asked this question in Q&A
Discussion options

You must be logged in to vote

The extrinsic failing is not an error. The extrinsic was submitted, accepted, and included in a block.
There was no error in there. What you need to do if you want to do something when an extrinsic fails is to watch the extrinsic with the command above and check the extrinsic result. If the result is EXTRINSIC_FAILED, then do whatever you want.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@poka-IT
Comment options

Answer selected by leonardocustodio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #436 on March 13, 2024 18:40.