1

I am running into timing issues, and am considering leaving out awaitTxConfirmed. Is that wise?

2 Answers 2

1

You may broadcast transactions in fire and forget manner. If the fact whether it got into a block or not is not important to you, skipping awaitTxConfirmed is not a bad idea.

2

If you don't care whether a transaction has not been added to the ledger, then you can skip awaitTxConfirmed. But in that case, do you need to use blockchain in the first place?

What are the timing issues? Why do you have timing issues? What are you trying to accomplish? Do you need confirmation that a transaction has been added to the ledger? What if it hasn't and you're assuming the transaction has been confirmed and you act upon a false assumption?

There's not enough information to give you an answer, but these questions might help you in coming up with your own answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.