Bitcoin Zero-Confirmation Payments: Full-RBF Risk and Merchant Security
A zero-confirmation Bitcoin payment is a transaction observed before inclusion in a block. It may be useful for rapid notifications or low-risk workflows, but observation alone does not establish final settlement. The transaction can be replaced, dropped from local mempools, or fail to confirm.
What a seen event proves
A node reporting a transaction in its mempool has accepted that transaction under its current local policy and view of the UTXO set. It has not obtained a network-wide guarantee that miners will include it. Another node may know a conflicting spend, and a miner may confirm that conflicting candidate instead.
A sender can intentionally or accidentally broadcast a different transaction spending the same inputs. Non-opt-in sequence values are not a security guarantee, particularly where full-RBF policies are used. Even without replacement relay, direct miner submission and heterogeneous mempool views mean that unconfirmed transactions remain reversible in practice.
Risk-based acceptance
Some merchants deliberately provide a service immediately after seeing a transaction. That is a commercial risk decision, not a property of Bitcoin consensus. The exposure depends on transaction value, reversibility of delivered goods, customer relationship, detection infrastructure, and the cost of a successful double spend.
For high-value or irreversible delivery, wait for confirmations appropriate to the risk. Confirmations reduce the likelihood of reversal but are not mathematically absolute: a chain reorganization can remove a previously confirmed transaction.
Build a trustworthy monitoring pipeline
Verify the recipient output's script and amount, not just a user-supplied TXID. Observe whether a transaction conflicts with other candidates. Record whether a notification is a mempool observation, a block inclusion, or a confirmation count. Authenticate event delivery and make updates idempotent so duplicate notifications cannot credit an invoice twice.
A replacement that retains the merchant's output may still satisfy the invoice, but it must be checked as a new candidate. A replacement that drops or reduces that output does not. If an original TXID disappears, distinguish confirmed replacement from local eviction or temporary lack of visibility.
After a block arrives
Validate the transaction against the active chain, count confirmations relative to the current tip, and reconcile after reorganizations. Keep the payment's logical identity separate from the transaction identifier so fee bumps and conflicts do not produce duplicate accounting entries.
The practical rule is simple: seen is not confirmed. An application may intentionally act on seen events, but its user interface, accounting, and operational policies should say exactly what that event means.
Primary references
Bitcoin Developer Guide — Transactions: https://developer.bitcoin.org/devguide/transactions.html
BIP125 — Opt-in Full Replace-by-Fee Signaling: https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki
