Wait for Transaction to be confirmed in React with useWeb3ExecuteFunction


I am using React-Moralis.

Is there any way to wait for a transaction to be confirmed?

How do i specifically figure out of the transaction has been confirmed?

I am using useWeb3ExecuteFunction which has onComplete, onSuccess and onError which only seem to handle the sending of the transaction not the Confirmation.



maybe you need to use wait somewhere

Hi there, have a look here: useWeb3Transfer() - How to wait success status - Moralis Forum

1 Like

The wait() function is called on the res object from onSuccess(res)