In this track: From send to settlement
beginner · 3 MIN READ

What does canceling a transaction mean?

A wallet’s cancel action often submits a competing request; it is not an undo switch.

LET’S PICTURE IT

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.

SEE IT FOR YOURSELF
Expected next nonce 4One fictional account
An account must consume transaction nonce four before five and sixNonce 4ReadyPayment ANonce 5Not submitted—Nonce 6Not submitted—

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.

QUICK CHECK · NO PRESSURE

Does a wallet’s pending “cancel” button guarantee the original action will not execute?

Your progress stays in this browser.
Keep exploring the original referenceethereum.org ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.