What’s the best way to wait for a transaction to finish in moralis?
Right now, if you use runContractFunction
from useWeb3Contract
you can use the onSuccess
param to do something after the transaction was submitted. What’s the best way to do something after a transaction has 1 block confirmations? (Or X confirmations)
Right now, I know I can listen for events manually… but it feels odd.