Can a Bitcoin Transaction Be Replaced After Broadcast?
Yes. Broadcasting a Bitcoin transaction does not make it final. While unconfirmed, it can conflict with another transaction spending the same inputs, and some nodes may accept a higher-fee replacement under their mempool policies.
Does the RBF flag determine safety?
No. BIP125 defined opt-in replacement signaling, but some nodes support full-RBF policies. Even when a wallet displays a transaction as non-RBF, zero-confirmation acceptance is not a consensus guarantee.
What changes when it is confirmed?
A confirmed transaction is included in a block on the active chain. It cannot simply be replaced in that block by ordinary mempool policy. However, chain reorganizations remain possible, so applications should use confirmation-depth rules appropriate to their risk.
What should an app do?
Track the transaction ID, input conflicts, replacement status, and confirmation count. Do not treat a mempool sighting as final settlement.
Primary references
BIP125 — https://bips.dev/125/
Bitcoin Core RPC documentation — https://bitcoincore.org/en/doc/
