§ 3.3 · Fees & Gas · 4 min
Replace-by-Fee and Fee Sniping, Explained
How to rescue a stuck transaction by paying more, why replacements have rules, and why miners might one day be tempted to rewrite the last block to steal its fees.
You sent a transaction with a fee that looked fine, then the network got busy and it has been sitting unconfirmed for hours. The fix, on most chains, is to replace it with a version that pays more. That mechanism — replace-by-fee — is simple in principle and carefully constrained in practice. A related idea, fee sniping, describes the opposite situation: a miner tempted to replace an entire block to capture the fees inside it.
This chapter explains both, and the safeguards that keep them in check.
Why replacement is possible at all
Until a transaction is in a block, it is just a signed message sitting in mempools. If you sign a different transaction that spends the same funds, the two conflict — only one can ever be included. Nodes must decide which to keep.
Early Bitcoin nodes simply kept whichever version they saw first. That was predictable but rigid: a transaction with too low a fee could stay stuck for a long time. Replace-by-fee changes the rule: a node will swap the old version for a new one if the new one pays meaningfully more.
Replace-by-fee on Bitcoin
Bitcoin's replacement policy has evolved. Originally, under BIP 125, a transaction had to signal that it was replaceable, and only signalling transactions could be replaced. More recent versions of Bitcoin Core treat unconfirmed transactions as replaceable by default — a policy usually called full RBF.
Replacements must follow rules designed to stop abuse, the most important being:
- Higher absolute fee. The replacement must pay more in total than everything it evicts.
- An extra increment. It must also pay for its own relay — at least a small minimum fee rate on top — so that someone cannot spam the network with endless tiny bumps.
- Limits on evictions. A single replacement cannot evict an unbounded number of transactions.
In practice, wallets handle this with a "bump fee" button: they rebuild the transaction with the same inputs, a lower change output and a higher fee, and broadcast it.
Replacement on Ethereum
On Ethereum, replacement works through the nonce. Every transaction from an account has a nonce, and only one transaction per nonce can be included. To replace a pending transaction, you broadcast a new one with the same nonce and a higher fee.
Clients require a minimum bump before accepting the replacement — commonly around 10% higher in both the maximum fee and the priority fee. The same mechanism lets you cancel a transaction: replace it with a zero-value transfer to yourself, at the same nonce and a higher fee, and once that lands, the original can never execute.
You can see replaced and dropped transactions by watching an account's pending nonce sequence against what lands in blocks in the Wevr.ai live tables.
The double-spend question
Replace-by-fee makes one thing explicit: an unconfirmed transaction is not a payment, it is a promise. Before RBF policies were widespread, some merchants accepted unconfirmed Bitcoin payments, betting that the first-seen version would win. Replacement makes that bet riskier, because the sender can sign a conflicting version that pays themselves instead, with a higher fee.
The lesson for anyone receiving funds is the same on every chain: wait for confirmation, and for large amounts, wait for more than one.
Fee sniping: the block-level version
Replace-by-fee is about replacing a transaction. Fee sniping is about replacing a block.
Imagine a block that has just been mined containing unusually high fees. Another miner could, in principle, ignore it and try to mine a competing block at the same height containing the same high-fee transactions, collecting those fees themselves. If they succeed and the network follows their chain, the original block is orphaned. That is fee sniping.
Today it is rarely worthwhile. The block subsidy is still large, and a sniper is racing the entire network, which is already building on top of the latest block. But as the subsidy halves every four years and fees become a larger share of miner revenue, the incentive grows — particularly after blocks with exceptionally high fees.
The defence: anti-fee-sniping locktime
Bitcoin Core wallets include a quiet defence. When building a transaction, they set its locktime to the current block height, meaning the transaction cannot be included in any block before the next one. A miner trying to rewrite the previous block cannot pull in fresh transactions from the mempool to sweeten it, because those transactions are only valid at the new height.
The protection is partial — the sniper can still claim the transactions already in the block being replaced — but it removes much of the extra reward and makes building on the current tip the better bet.
On proof-of-stake chains like Ethereum, the dynamics are different: block producers are assigned to slots in advance, and finality makes rewriting history beyond a short window extremely costly. The concern there shifts toward short reorgs and MEV rather than classic fee sniping.
The takeaway
Replace-by-fee lets you rescue a stuck transaction by paying more, under rules that stop spam and abuse — via fee bumps on Bitcoin and same-nonce replacements on Ethereum. It also reminds everyone that unconfirmed means unsettled. Fee sniping is the same incentive at the block level, held in check today by large subsidies and anti-sniping locktimes, and worth watching as fees take a bigger share of miner revenue. Fee trends for both chains are on the Wevr.ai chart explorer.