Skip to content

why to wait for block confirmation #5372

Answered by aaankeet
dme1emd asked this question in Q&A
Discussion options

You must be logged in to vote

When you deploy a smart contract on a blockchain network, you are essentially submitting a transaction that contains the bytecode of your contract to be executed by the network's nodes. Once this transaction is submitted to the network, it needs to be included in a block and added to the blockchain. This is where block confirmations come in.

Block confirmations refer to the number of blocks that have been added to the blockchain after the block that includes your contract deployment transaction. Each block that is added to the chain after your transaction increases the level of security and immutability of your contract.

The await deploy() line in your code waits for the network to confir…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dme1emd
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants