How Does a ‘Replace-by-Fee’ (RBF) Transaction Work?

RBF allows a user to replace an unconfirmed transaction in the mempool with a new transaction that has the same nonce but offers a higher gas fee. This is used to speed up a stuck transaction or to cancel a pending one by replacing it with a zero-value transaction to the sender's own address.

What Is a ‘Stuck Transaction’ and How Is It Resolved?
What Are the Risks of Using RBF for a Sender or Receiver?
What Is “Replace-by-Fee” (RBF) and How Does It Affect Miners?
What Is the Practical Difference between “Opt-in RBF” and “Full RBF”?
What Is a “Transaction Nonce” and How Does It Differ from a Mining Nonce?
Relate the Concept of ‘Nonce’ in Mining to the ‘Nonce’ in ECDSA Signing
What Is ‘Replace-by-Fee’ (RBF)?
Why Do Market Makers Often Cancel and Replace Their Orders in a Dynamic Order Book?

Glossar