Asset prices are temporarily delayedSome assets have stopped receiving fresh price data. Updates will resume automatically once the pipeline recovers.
Bitculator

Get Bitculator on Android

Marketcap:

$1,932,902,784,075

Volume 24h:

$209,175,082,222

Jun 06 Liquidations:

$0

24H Long/Short:

Coming soon

Transaction Replacement Attack

What does Transaction Replacement Attack mean in crypto terms?

A Transaction Replacement Attack exploits the ability to replace unconfirmed cryptocurrency transactions with higher-fee ones, potentially leading to double-spending issues.

ID: 557
Hero Image

What is Transaction Replacement Attack?

A Transaction Replacement Attack is when someone sends a crypto payment, then quickly broadcasts a different version of that transaction with changed details before it gets confirmed. The goal is to trick whoever accepts the first pending payment. Think of promising cash at the register, then sprinting back to swap the bills while the cashier looks away.


Myth

If a transaction shows as pending, it is safe to treat as paid. Not quite. Until a miner includes it in a block, swaps can still happen and a Transaction Replacement Attack can flip the outcome.


How Transaction Replacement Attack works

Quick play by play with a simple checkout moment in mind.

  • Step 1: An attacker sends you a payment with a low fee. You see it pending and feel good about it.
  • Step 2: Before confirmation, the attacker crafts a new transaction that spends the same funds, often via Replace by Fee (RBF) or by resubmitting with the same nonce on account based chains.
  • Step 3: The replacement offers a bigger fee and more miner appeal, so it gets mined while the first version gets dropped.
  • Step 4: This is easier during heavy network congestion when miners prioritize higher fees.
  • Step 5: You release the product or service on a pending payment and end up unpaid once the chain confirms the replacement.

That is the move. Simple, a bit sneaky, and preventable.


Why Transaction Replacement Attack Matters

Here is why you should care, whether you are running a checkout or just moving coins to a friend.

  • Benefit: Replacement mechanics let honest users speed up stuck payments by fee bumping, which is handy when you need it confirmed now.
  • Perspective: The same tools that help you can also be used against you if you trust a pending payment for goods or access.
  • Relevance: You will see this in point of sale setups, NFT mints, OTC trades, and anywhere people accept pending transactions.

Tip

Use a cryptocurrency wallet that clearly flags replaceable transactions and shows confirmation counts. For payments, require a few confirmations before handing over anything that matters.


Key Characteristics of Transaction Replacement Attack

What sets this apart, in plain speak:

  • Timing: It happens before confirmation, while the transaction is still floating in the mempool.
  • Incentives: A higher fee or better terms tempt miners or validators to include the replacement instead of the original.
  • Signals: Some transactions are marked as replaceable, and account based chains allow same nonce replacements.
  • Target: Merchants or peers who accept pending payments are the soft spot.

Variations

Same theme, slightly different mechanics depending on the chain.

  1. RBF: A sender flags a payment as replaceable and later broadcasts a higher fee version that changes the output or recipient.
  2. Nonce swap: On account based chains, a user resubmits a transaction with the same nonce but higher gas, which cancels or alters the previous intent.
  3. Refund trick: A sender first pays a merchant, then replaces the pending payment with one that sends funds back to an address they control.

Reminder

Do not treat a payment as final until your node marks the transaction as settled. A Transaction Replacement Attack loses steam after proper confirmations.


Example

A cafe accepts a pending payment for a latte, the buyer immediately broadcasts a higher fee replacement that sends the funds elsewhere, and the barista realizes later that the buyer was exploiting replaceability.


Fun Fact

Fee bumping was introduced to help honest users rescue stuck transactions, long before it became a meme for trickery. Like many tech moves, it is Rolex meets Reddit threads depending on who is holding the keys.


Wrap-Up

Short version: do not ship goods on a maybe. Wait for a block or two, then relax.

Explore Other Crypto Terms

Did you find this term clearly defined?

Did we forget anything?

Your input helps us keep things correct. Contact us if anything is incorrect or missing.

Contact