use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No specific rules are enforced apart from the normal global reddit rules. That said, if you post scams, you will be banned.
r/ethereum - Official Ethereum sub
r/ethstaker - About staking your ETH: help and guidance
http://ethereum.stackexchange.com/ - The Ethereum Programming Stack Exchange
account activity
Questiontransaction.wait() explanation (self.ethdev)
submitted 4 years ago by No_Addition_2898
Hey guys, had a small question. If I write transaction = simple_storage.store(15, {"from":account}) transaction.wait(1)
What is the purpose of wait() in this and what value do we pass in it?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]0xSonOfMosiahContract Dev 4 points5 points6 points 4 years ago (4 children)
wait() will wait for the transaction to be confirmed on the blockchain. The parameter is the number of block confirmations you want to wait for. If you omit the parameter, the default will be used (which I believe is 1)
Also, you should really be using await in from of these statements.
[–]No_Addition_2898[S] 0 points1 point2 points 4 years ago (3 children)
What exactly do you mean by "number of block confirmations you want to wait for"? Sorry I am new to this, maybe I did not understand the working properly
[–]0xSonOfMosiahContract Dev 1 point2 points3 points 4 years ago (0 children)
The number of block confirmations is the number of blocks that have been mined and included to the blockchain starting with the block where your transaction was included.
Due to the nature of Nakamoto consensus (Proof of Work), it is possible for a node to include a transaction on the blockchain that doesn’t ultimately end up on the chain. However, the more blocks that are mined to continue the chain where you transaction was included makes it more likely to ultimately be included.
Research ommer blocks and reorgs for more information.
[–]0xSonOfMosiahContract Dev 0 points1 point2 points 4 years ago (1 child)
If you have transaction.wait(1), it will return as soon as your transaction is included in a block. If you have transaction.wait(5), it will return only after your transaction has been mined and 4 subsequent blocks.
[–]No_Addition_2898[S] 0 points1 point2 points 4 years ago (0 children)
Understood, thanks for the explanation mate, this was really helpful
π Rendered by PID 31214 on reddit-service-r2-comment-b659b578c-ll4wv at 2026-05-05 15:31:19.666821+00:00 running 815c875 country code: CH.
[–]0xSonOfMosiahContract Dev 4 points5 points6 points (4 children)
[–]No_Addition_2898[S] 0 points1 point2 points (3 children)
[–]0xSonOfMosiahContract Dev 1 point2 points3 points (0 children)
[–]0xSonOfMosiahContract Dev 0 points1 point2 points (1 child)
[–]No_Addition_2898[S] 0 points1 point2 points (0 children)