Replace-by-fee
ProtocolThis term is part of the Bitcoin glossary — See all terms
Replace-by-fee is an opt-in rule that lets you resubmit an unconfirmed transaction with a higher fee so it confirms sooner.
Stuck with a transaction that isn't getting mined because the fee was too low? If the original transaction signalled that it can be replaced — the opt-in flag defined by BIP 125 — you can send a new version paying a higher fee. Miners prefer the version that earns them more, so the old one drops out and the new one gets picked up.
The replacement must also pay at least as much as the original, and each replacement has to bump the fee by a meaningful amount, otherwise people could spam the network with free replacements. This is why modern wallets show a fee slider and a cancel button: both are just replace-by-fee under the hood. Once a transaction has its first confirmation, replacements are no longer allowed.
