Check if a TX was really rejected #4088
-
ethers 6.4.0 Hi, I'm sorry if I missed it in the docs, but I'm not sure if I'm doing it correctly ( checking if a tx was confirmed or not ). Could you tell please.. the 5.7 docs say:
but my code which uses 6.4.0 doesn't throw anything...... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think yes, if the wait() method returns status 0 then it means it's over, no further changes will occur |
Beta Was this translation helpful? Give feedback.
that's correct no changes will occur.
status
is a detail from receipt which is available only after a tx has been included in a block successfully. 1 means if the tx was successful and 0 means tx fail for certain reason like revert, out of gas etc