How to Fix Slow Bitcoin Transactions with Replace-By-Fee


Bitcoin was recently spammed with tons of cheap non-financial "time-stamping" transactions.

BitFury made a deal to prioritize them over genuine financial transactions effectively worsen the experience for everyone on the network.

This resulted in almost 200 000 unconfirmed transactions sitting in Mempool for hours and even days.

Those wishing to have their transactions confirmed in a reasonable timeframe have to fight for the block space by significantly raising transaction fees.

But what about those that don't pay a high-enough fee and their transactions have been stuck for quite some time already?

The answer is Replace-By-Fee.

Replace-By-Fee (RBF) is a recently reintroduced feature to allow a sender "bumping" the fee of a "stuck" transaction.

In reality, a new transaction with the same outputs and inputs is created. The only difference is that the sender is able to include a higher fee as an incentive for miners to include such transaction in a block faster.

For the purpose of the tutorial, I'll be using Electrum 2.8.2. The process should be very similar in other wallets that support RBF feature too.

 Download Electrum

Before making any low-fee transaction, make sure Replace-By-Fee option is turned on.

Go to Tools -> Electrum preferences and change Propose Replace-By-Fee to Always or If the fee is low.

Turn on Replace-By-Fee

Say you want to try your luck paying a 0.0001 BTC fee first (just to find out it's insufficient and your transaction won't be confirmed anytime soon).

Make the transaction replaceable

Choose the Replaceable option and send the transaction.

The transaction will be placed in Mempool which is a list of unconfirmed transactions.

Currently, almost 150 000 transactions are waiting to be confirmed

The size of Mempool is currently huge and it may take up to several days for some low-fee transaction to be confirmed.

You can check the Mempool size at blockchain.info.

Back to Electrum now.

Unconfirmed RBF transactions are clearly distinguished from non-RBF ones with a yellow triangle and label Replaceable.

The transaction is marked replaceable

Wait for the transaction to confirm within an acceptable (for you) amount of time.

If it doesn't, right click the "stuck" transaction and select Increase the fee. A window will popup with an option to raise the fee.

Bump the transaction fee

Move the slider back and forth to get new confirmation estimates.

You can also calculate the "sufficient" fee yourself using data from 21.co.

List of current fee rates

In this particular case, paying anywhere between 201-220 satoshi per byte should be good enough to get the transaction confirmed within next 25 blocks or roughly 4 hours.

To calculate the total needed fee click OK. Transaction details will pop up (don't hit the Sign button yet).

Find the transaction size and calculate the fee

Look for the transaction Size which is 226 bytes in our case.

Multiply this size with a chosen fee rate and you'll get the total fee that needs to be paid, let's say:

226 B x 220 satoshi = 49 720 satoshi or 0.0004972 BTC

Close the window and go back to the "RBF screen".

in the New fee field, type in the new fee denominated in BTC (0.0004972 BTC) and hit OK.

Click Sign and then Broadcast to send the new transaction.

Sign and broadcast the new transaction

The former transaction will be replaced by the new one which should hopefully be picked up by miners soon.

Please note, that when you look up the new transaction on a block explorer like blockchain.info, it will warn you that it's a possible "double spend" of a previous transaction.

While RBF makes it easier for non-tech folks to double spend an unconfirmed transaction, it's almost equally trivial to do so even without Replace-By-Fee turned on.

Therefore, it's highly recommended to never accept any unconfirmed transactions for this reason alone.

*****

I hope your Bitcoin experience is mostly positive but Replace-By-Fee was put in place in case it's not.

The rule of thumb is to have it turned on by default for all transactions. The reason is that Mempool can grow within a few minutes and what seems like an adequate fee will quickly become insufficient.

If you're paying your business partners for goods and services or sending other important transactions (e.g. rent) you don't want to take your chances.

Will you start using Replace-By-Fee from now on? Please let us know in the comments below.

If you like my post, don't forget to share it with your followers.

You can also support me by donating some bitcoins. Thank you!

Subscribe to our newsletter for weekly thoughts and tutorials. You'll receive a FREE e-book as a bonus!

What do you think?
WE THOUGHT YOU'D LOVE THESE POSTS TOO

Are you tired of political parasites getting in your way of life?

If yes, let us help you out with our EXCLUSIVE newsletter.

SIGN UP NOW... IT'S FREE

Hide your financial assets with Bitcoin and other cryptocurrencies.

Make your communication private using open-source cryptographic tools.

Mitigate the risk of single point of failure in anything you do with decentralized technologies.

Are you intersted? Then become our subscriber, receive exclusive content straight to your inbox + claim your FREE e-book!

* required
Subscribe to get access to our exclusive content + claim your FREE e-book!