Will nonce increase even when the transaction fail?
For example,
nonce=0 -> tx succeed
nonce=1 -> tx succeed
nonce=2 -> tx fail
Then I want to send a new raw transaction, should I assign nonce as 2 or nonce as 3?
Thank you
Each transaction from an account must have an incremental nonce, regardless of whether or not the transaction succeeds. The MyCrypto knowledge base provides a good explanation of why Ethereum uses nonces.
ᴄʀᴇᴀᴛᴇ2
operation ? ethereum.stackexchange.com/q/76489
Commented
Oct 4, 2019 at 20:40