Getting transaction data #1731
Unanswered
PradhumnaPancholi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You need to look at
You need to look at the first 4 bytes of
You need to look at the transaction receipt const receipt = await provider.getTransactionReceipt('txhash');
receipt.status // 1 for success and 0 for fail |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I am doing some prep work for an education tool. And right now, I am trying to sandbox something where I can make sure that the user made a transaction, to the correct contract, method, and if it was a success or not. I am assuming that the following methods will give me sufficient data to get MVP up and running.
transaction.from
transaction.from
transaction.data
This question is more n terms of if there's a better, more optimized way to do so.
Beta Was this translation helpful? Give feedback.
All reactions