In this track: From send to settlement
What does canceling a transaction mean?
A wallet’s cancel action often submits a competing request; it is not an undo switch.
Submitting a different numbered form can try to occupy the original form’s slot. It cannot guarantee that the original form was not already processed.
Nonce 4 is ready. Try submitting nonce 5 before including it.
A simplified local queue for ordinary account transactions. This model omits fee and other admission checks, and never signs or sends anything.
The common wallet pattern
For a pending ordinary account transaction, a cancel function may prepare a different transaction with the same nonce, often a simple self-directed request and altered fees. The exact construction depends on the wallet.
The network must still include something
The competing cancellation transaction needs valid authorization and acceptable fee conditions. It can itself incur an execution fee if included. Closing a browser tab or disconnecting a site does not perform this action.
The original might win the race
A proposer may include the original before the replacement is effective in the relevant path. A user interface should not call the original canceled merely because a new request was created. Check which nonce-consuming transaction became part of the accepted history.
An included action is different
Ordinary Ethereum transaction processing has no general user-operated undo of an accepted action. An application can have its own refund or reversal feature, but that is new contract behavior under separate rules.
Does a wallet’s pending “cancel” button guarantee the original action will not execute?
It can create a competing candidate, and inclusion is still subject to timing and network conditions.
Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.