await transactionResponse.wait(1) #3369
-
okay so here is the thing , i understand that this waits for 1 block , but i don't really understand it , like why wait for blocks , i don't really understand this piece of code :
i know this one of the easiest stuff going on , but like i need someone to explain it to me in english like what is going on exactly . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Ahmed14z : In this line It's totally upto you, If you wanna wait or not! But its a good practice to wait for couple of blocks on transactions, Because number of confirmations are required to finalize a transaction with high probability, and to ensure that there is probabilistically a very low chance for a transaction to be reverted! |
Beta Was this translation helpful? Give feedback.
@Ahmed14z : In this line
await transactionResponse.wait(1)
we are waiting for one block confirmation on our fund transaction!It's totally upto you, If you wanna wait or not!
But its a good practice to wait for couple of blocks on transactions, Because number of confirmations are required to finalize a transaction with high probability, and to ensure that there is probabilistically a very low chance for a transaction to be reverted!