- Transaction nonce: Used for transaction validation.
- Deployment nonce: Incremented when a contract is deployed.
Handling Nonces in Smart Contract Wallets
Learn how to build smart contract wallets that interact with the NonceHolder
system contract.
- Newly created contracts begin with a deployment nonce value of
0
(as opposed to1
). - The deployment nonce is only incremented if the deployment succeeds (as opposed to Ethereum, where the nonce is incremented regardless of the deployment outcome).