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.