How Does a Transaction’s Nonce Relate to State Changes?
A nonce is a unique, sequential number assigned to every transaction initiated by a specific account. For a state change to be valid, the transaction's nonce must be one greater than the last confirmed nonce for that account.
It ensures that transactions are processed in the correct order, preventing replay attacks and guaranteeing that state changes occur sequentially and predictably.