Replies: 1 comment 2 replies
-
Yes. A transaction won’t be mined until the previous nonce has been mined. It can be used as a way to ensure the order of multiple transactions. But requiring the values be sequential, it means for any given account, all we need to store is the number of transactions sent. If it was “any” random number we would need to keep a list of every nonce ever used and check it for every transaction. This way we can just keep one value around, look it up and use it. When I first began in Ethereum, I had the exact same question and assumption based on how I’d used the term As an aside, a common technique for Smart Wallets is to use a 2D nonce, which will afford some very cool schemes for publishing transactions. But I’ll go into that with the EIP-4337 release. :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Maybe a simple question but i would really appreciate if someone can help here.
Does the Nonce value have to be continuos? As in the first one from a wallet will have nonce value as 0, the next transaction will have 1 and then 2..3...4..5.. etc.
Is it possible to have a transaction in a wallet with a random value for nonce?
thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions