Bitcoin Fees and Unconfirmed Transactions - Complete Beginner's Guide

99Bitcoins
27 Aug 201814:36

Summary

TLDRThis informative script delves into the intricacies of Bitcoin transaction fees, explaining why they exist and how they function within the Bitcoin network. It clarifies that these fees are paid to miners as an incentive to prioritize transactions during times of network congestion. The video outlines the process of transaction verification, the role of the Mempool, and how miners select transactions based on attached fees. It also discusses the concept of feerate, measured in Satoshis per byte, which fluctuates with network demand. The script provides practical advice on reducing fees, such as avoiding busy network times, using SegWit-compatible wallets, and consolidating inputs. It touches on the Replace By Fee (RBF) feature and transaction accelerators, and addresses concerns about transactions getting stuck. The summary concludes by acknowledging the complexity of fees and the ongoing search for scalable solutions like the Lightning Network, inviting viewers to engage with further questions.

Takeaways

  • 💰 **Transaction Fees**: Bitcoin owners pay miners to process transactions, which are prioritized based on the fee attached.
  • ⏱️ **Transaction Speed**: Higher fees can expedite the confirmation process, while lower fees may result in slower transaction times.
  • 🚫 **Insufficient Fees**: If the fee is too low, transactions may be delayed or not processed, potentially getting 'stuck'.
  • 🔄 **Mempool**: Valid transactions wait in the Mempool to be included in a block; they are 'unconfirmed' until added to the blockchain.
  • 📏 **Transaction Size**: The fee is calculated based on the transaction's size, which is influenced by the number of inputs and outputs.
  • 🏡 **Feerate**: Similar to cost per square foot in real estate, the feerate in Bitcoin is the fee paid per byte of transaction data.
  • 📊 **Dynamic Fees**: The required fee fluctuates with network demand, much like apartment prices vary by location and demand.
  • 💡 **Wallet Assistance**: Bitcoin wallets typically calculate and suggest appropriate fees based on the current network conditions.
  • 🕒 **Timing**: Sending transactions during off-peak times can reduce fees, as network congestion drives up the cost to prioritize transactions.
  • 🔗 **SegWit**: Using a wallet that supports SegWit can reduce transaction size and fees, as it optimizes the way transaction data is structured.
  • ⛓ **Lightning Network**: As a future solution, the Lightning Network aims to offer nearly instant and free transactions for Bitcoin users.

Q & A

  • Why are Bitcoin transaction fees necessary?

    -Bitcoin transaction fees are necessary because they serve as an incentive for miners to include transactions in the blocks they mine. Fees are a way for users to signal the urgency of their transactions to miners, with higher fees leading to faster confirmation times.

  • How can I ensure my Bitcoin transaction goes through quickly?

    -To ensure your Bitcoin transaction goes through quickly, you can attach a larger transaction fee. This signals to miners that your transaction is a priority and should be processed sooner.

  • What happens if I don't pay enough in transaction fees?

    -If you don't pay enough in transaction fees, your transaction may be delayed or not processed at all. Miners prioritize transactions with higher fees, so a low-fee transaction may remain unconfirmed for a long time or be dropped from the mempool after 72 hours.

  • Is it possible for my Bitcoin transaction to get stuck indefinitely?

    -While it's unlikely, a transaction can theoretically get stuck indefinitely if a node continuously rebroadcasts it. However, if a transaction remains unconfirmed for a long time, it will eventually be erased from the mempool of most nodes.

  • How can I pay less in transaction fees compared to the average user?

    -You can pay less in transaction fees by avoiding sending transactions during peak network times, using a wallet that supports SegWit to reduce transaction size, consolidating your inputs to reduce the number of inputs in a transaction, and grouping multiple outputs into a single transaction.

  • How is the size of a Bitcoin transaction calculated?

    -The size of a Bitcoin transaction is calculated based on the number of inputs (references to past transactions), the number of outputs (addresses being paid to), and the script complexity (special features like multisig). The more inputs and outputs, and the more complex the script, the larger the transaction size.

  • What is the Mempool and why is it important?

    -The Mempool, short for Memory Pool, is a 'waiting room' where valid but unconfirmed transactions wait to be picked up by miners and included in a block. Transactions in the Mempool are considered 'unconfirmed' until they are confirmed by being included in a block.

  • What is the Replace By Fee (RBF) feature and how does it work?

    -Replace By Fee (RBF) is a feature that allows a wallet to rebroadcast a transaction with a higher fee. This can help speed up the confirmation of a transaction that is stuck due to a low fee. However, not all wallets support RBF, and in some cases, it is an opt-in feature.

  • What is the Lightning Network and how does it relate to transaction fees?

    -The Lightning Network is a proposed solution for handling a large volume of Bitcoin transactions off the main blockchain. It aims to enable near-instant and virtually free transactions, which could significantly reduce the reliance on transaction fees for prioritization.

  • How do Bitcoin wallets typically handle transaction fees?

    -Bitcoin wallets typically recommend a reasonable fee based on the current and recent activity levels of the Bitcoin network. Users can often adjust their fees or set a general fee preference (low, medium, or high) within the wallet. Wallets also calculate the transaction size and suggest the appropriate fee based on the average feerate.

  • What is the Child Pays for Parent (CPFP) strategy and how does it work?

    -Child Pays for Parent (CPFP) is a strategy where a new transaction is created that spends unconfirmed incoming transactions (child transactions) and includes a high enough fee to incentivize miners to also mine the old, low-fee transactions. This can be a complex and risky procedure not intended for average users.

Outlines

00:00

🤔 Understanding Bitcoin Transaction Fees

This paragraph discusses the reasons behind Bitcoin transaction fees, the importance of fee size in transaction confirmation speed, and strategies to minimize fees. It explains that fees are paid to miners and are determined by the urgency of the transaction. The concept of 'Mempool' is introduced, which is a waiting area for transactions before they are included in a block. The paragraph also touches on the historical changes in fee structures and the current necessity of fees for transaction mining. The transaction size and its factors, such as the number of inputs and outputs, are also explained, along with how they affect the transaction fee.

05:01

💡 Minimizing Bitcoin Transaction Costs

The second paragraph delves into methods to reduce transaction fees. It suggests avoiding network congestion, using SegWit-compatible wallets, and consolidating inputs to decrease transaction size. The paragraph also covers the use of grouping multiple outputs into a single transaction to save on fees. It discusses how wallets estimate and recommend fees based on network activity and how users can adjust their fee preferences. Additionally, it provides an example of calculating the transaction fee based on the transaction size and the current feerate. Lastly, it addresses what happens if a transaction fee is not sufficient, including the potential for transactions to get stuck and the options available to users in such scenarios.

10:05

🔄 Advanced Fee Management and Network Solutions

The final paragraph explores advanced fee management strategies, such as using the Replace By Fee (RBF) feature and transaction accelerators. It also mentions the potential risks of double-spending and the Child Pays for Parent (CPFP) method. The paragraph discusses the mempool's role in transaction confirmation and the possibility of a transaction being forgotten or stuck indefinitely. It concludes with a note on the importance of low fees for Bitcoin's goal as a peer-to-peer payment system and hints at the Lightning Network as a potential solution for handling increased demand on the Bitcoin network.

Mindmap

Keywords

💡Bitcoin transaction fees

Bitcoin transaction fees are the amounts paid by Bitcoin owners to miners for processing their transactions. These fees are essential to incentivize miners to include transactions in the blocks they mine. In the video, it is explained that fees are a way to signal the urgency of a transaction to miners, with higher fees leading to faster confirmation times. The fees are always paid by the sender and are a significant aspect of the Bitcoin network's operation.

💡Transaction verification

Transaction verification is the process where nodes in the Bitcoin network check the validity of a transaction by reviewing the Bitcoin's history to ensure the spender has the balance to cover the transaction. It is a crucial step before a transaction enters the Mempool, as it ensures the integrity of the Bitcoin blockchain. In the video, it is mentioned as the first step a Bitcoin transaction goes through after being sent.

💡Mempool

The Mempool, short for Memory Pool, is a 'waiting room' for transactions that are valid but not yet included in a block. Transactions in the Mempool are waiting to be picked up by miners and packaged into a new block. The video explains that miners prioritize transactions based on the fees attached, which can affect how quickly a transaction is confirmed.

💡Transaction size

Transaction size refers to the amount of data required to represent a Bitcoin transaction, which includes the number of inputs and outputs, as well as any scripting complexity. The size of a transaction is important because it affects the fees required; larger transactions require more space in a block and thus typically have higher fees. The video provides an example of how a transaction size is calculated and its impact on the transaction fee.

💡Feerate

Feerate, measured in Satoshis per byte, is the cost per unit of size for a Bitcoin transaction. It is a critical factor in determining the transaction fee and is influenced by network demand. Miners prioritize transactions with a higher feerate, as it maximizes their profit. The video uses an analogy of cost per square foot to explain the concept of feerate in the context of Bitcoin transactions.

💡Unconfirmed transaction

An unconfirmed transaction, also known as a 'zero confirmation transaction', is a Bitcoin transaction that has been verified but not yet included in a block. It exists in the Mempool and is awaiting confirmation by miners. The video clarifies that until a transaction is included in a block, it remains unconfirmed, and the process of sending funds is not complete.

💡SegWit (Segregated Witness)

SegWit is a protocol upgrade for Bitcoin that changes the way transaction data is structured, resulting in a smaller transaction size. This can lead to reduced fees for users, as the transaction size is a determinant of the fee. The video suggests using a wallet that supports SegWit as a way to potentially pay less in transaction fees.

💡Inputs and Outputs

In the context of Bitcoin transactions, inputs are references to past transactions that make up the amount of Bitcoin an individual owns. Outputs, on the other hand, are the addresses to which the Bitcoin is being sent and any change returned to the sender. The number of inputs and outputs directly affects the size of a transaction and, consequently, the associated fee. The video explains that more inputs and outputs can increase the transaction size and thus the fee.

💡Replace By Fee (RBF)

Replace By Fee is a feature that allows a wallet to rebroadcast a transaction with a higher fee if the original transaction is not confirmed within a certain time frame. This can help to speed up the confirmation process. However, not all wallets support RBF, and it is mentioned in the video as one of the options available to users if their transaction is stuck.

💡Transaction accelerators

Transaction accelerators are services, often operated by mining pools, that claim to prioritize or 'accelerate' a user's transaction for a fee. They promise to include the transaction in the next block they mine if there is room. The video notes that some accelerators are free or have free tiers, while others require payment, and they can be a way to get a stuck transaction moving.

💡Lightning Network

The Lightning Network is a proposed solution for handling a large volume of Bitcoin transactions off the main blockchain. It is designed to enable near-instant and very low fee transactions by creating a layer on top of the Bitcoin blockchain. The video briefly mentions the Lightning Network as a future technology that could help manage the growing demand on the Bitcoin network.

Highlights

Bitcoin transaction fees are paid to miners as an incentive for including transactions in a block.

Transaction verification involves checking the validity of a Bitcoin transaction by nodes.

After verification, transactions enter the Mempool, a 'waiting room' for miners to pick up.

Miners prioritize transactions based on the attached fee, especially during network congestion.

The urgency of a transaction is signaled by the fee size, affecting confirmation speed.

Bitcoin transaction fees are always paid by the sender.

Every transaction requires a fee to get mined, unlike in the past where certain transactions could be free.

Transaction fees are calculated based on the size of the transaction and the current network demand.

Feerate, measured in Satoshis per byte, determines how much is paid per unit of transaction size.

Transaction size is influenced by the number of inputs, outputs, and script complexity.

Bitcoin wallets suggest fees based on the average feerate at the time of transaction.

The Bitcoin blockchain does not explicitly list fees; they are inferred from the transaction inputs and outputs.

To save on fees, avoid transacting during network peak times and use wallets that support SegWit.

Consolidating inputs and grouping multiple outputs can optimize fee costs.

Wallets recommend fees based on network activity levels, with options to adjust fee preferences.

If a transaction fee is too low, the transaction may be delayed or stuck in the mempool.

Replace By Fee (RBF) and transaction accelerators are methods to address fee-related issues.

Transactions not confirmed for an extended period may be erased from mempools, potentially 'stuck' if not managed.

The Lightning Network is a promising solution for handling increased demand and reducing transaction fees.

Transcripts

play00:00

Why are there Bitcoin transaction fees?

play00:02

How much do I need to pay

play00:03

to get my transaction to go through quickly?

play00:06

What happens if I don’t pay enough of a fee?

play00:08

Can my transaction get stuck?

play00:10

Is there a way for me to pay less in fees than most other people do?

play00:14

If you’re looking for easy to understand answers,

play00:16

stick around,

play00:17

here on Bitcoin Whiteboard Tuesday,

play00:19

we’ll answer these questions and more.

play00:27

When talking about fees in the context of Bitcoin

play00:30

we usually are referring to

play00:31

the amount bitcoin owners pay to bitcoin miners

play00:34

whenever they send funds to another bitcoin address.

play00:37

In order to truly understand fees in detail

play00:39

we first need to understand

play00:41

what happens when you send Bitcoins to another address.

play00:45

After you send a Bitcoin transaction,

play00:47

the first step it goes through is transaction verification.

play00:51

This means the transaction is checked by every computer

play00:54

holding a copy of the Bitcoin blockchain for validity.

play00:57

These computers are called nodes.

play00:59

Basically, at this stage

play01:01

the nodes are checking Bitcoin’s history

play01:03

to make sure that you actually have the Bitcoins in your account balance

play01:06

that you want to spend.

play01:09

After a transaction is deemed valid

play01:11

it goes into the Mempool, short for Memory Pool.

play01:14

This is sort of a ‘waiting room’

play01:16

where the transaction sits and waits for a miner to pick it up

play01:19

and pack it into a block of transactions.

play01:22

In other words,

play01:23

even though the transaction is valid,

play01:25

we still haven’t updated it into the global ledger of Bitcoin transaction.

play01:30

At this point

play01:31

the transaction is considered an “unconfirmed transaction”

play01:34

or a “zero confirmation transaction”.

play01:37

Finally, once a miner picks up the transaction

play01:40

and includes it in a successfully mined block

play01:43

the transaction is considered to be confirmed

play01:45

and the process of sending the funds is complete.

play01:48

Now here’s the thing -

play01:50

A block can only hold a finite amount of transactions,

play01:53

so at times when the network is crowded

play01:56

and there are a lot of transactions waiting to be confirmed

play01:59

the miner will prioritize which transactions to pick up

play02:02

based on the fee attached to the transaction.

play02:05

So fees are a way of signalling to the miner

play02:08

how urgent your transaction is.

play02:10

If you want to get confirmed faster you’ll attach a larger fee.

play02:14

If you’re not so time sensitive you can do with a smaller fee.

play02:18

One thing to keep in mind is that

play02:19

fees are always paid for by the sender of the transaction.

play02:24

In the past,

play02:25

fees had different rules than what they do today.

play02:28

You could send transactions for free

play02:30

if your transaction was small enough in size

play02:32

or if it had “priority”.

play02:34

Today however, things have changed,

play02:36

and every transaction requires a fee in order to get mined.

play02:41

Calculating the appropriate Bitcoin transaction fee

play02:44

isn’t as straightforward as it seems.

play02:46

Every transaction has a size, just like a file size on your computer.

play02:51

Since miners want to maximize their profit,

play02:53

they will prioritize transactions that have

play02:56

a larger fee to size ratio, or feerate for short.

play03:00

Let’s explain with an example from a different market.

play03:04

When shopping for a home or an apartment,

play03:06

the price of the home is calculated in terms of cost per square foot.

play03:10

While the apartment’s price is comparable to

play03:12

the total transaction fee you pay,

play03:15

in order to measure the apartment’s value,

play03:17

you need to calculate

play03:18

how much you would need to pay per square foot.

play03:21

Feerate is Bitcoin’s cost per square foot.

play03:25

Feerate is measured in Satoshis per byte.

play03:28

It basically means how many Satoshis

play03:30

or the smallest unit of account in Bitcoin

play03:33

that you are willing to pay

play03:34

for every byte or unit of size of your transaction.

play03:38

This rate varies depending on

play03:40

how much the network is crowded with transactions,

play03:42

much like the cost of an apartment varies

play03:44

depending on the demand for living space

play03:46

in the area you want to live.

play03:48

There are several websites that list the estimated feerate

play03:51

in order to get your transaction included into the next block.

play03:55

So how is the transaction size calculated?

play03:59

Well, a transaction size depends on a number of different factors,

play04:02

let’s go over the most significant ones.

play04:05

The first factor is the number of inputs.

play04:08

Each Bitcoin you own, at its core,

play04:10

is just a reference to past transactions that were sent to you,

play04:14

adding up to the amount you own.

play04:16

These references are known as inputs.

play04:19

When you send Bitcoins to someone

play04:21

you are basically selecting different inputs sent to you in the past

play04:25

and forwarding them to the recipient as outputs.

play04:28

The more inputs your transaction is comprised of,

play04:31

the bigger its size.

play04:32

For example, let’s say you own one Bitcoin.

play04:36

That Bitcoin is actually comprised of

play04:38

many references to transactions sent to you in the past,

play04:41

assuming you accumulated that one Bitcoin from several sources.

play04:45

When you send this one Bitcoin to someone else,

play04:48

your transaction will be composed of all of these previous references.

play04:52

The second factor is the number of outputs.

play04:55

Simply put,

play04:57

outputs are the number of addresses you’re paying to.

play04:59

For example,

play05:00

if you’re only paying to one address,

play05:02

it’s highly likely you’ll actually generate two outputs.

play05:05

One for the address you’re sending to, and another one to “pay yourself back”

play05:10

the change from your initial payment.

play05:12

For an explanation about change,

play05:14

take a look at our ‘Bitcoin change explained’ video.

play05:18

The last significant factor in determining your transaction size

play05:21

is the script complexity.

play05:23

Some transactions use special features

play05:26

which we won’t go into in this video like multisig.

play05:29

These features increase the transaction size.

play05:32

As you may imagine,

play05:33

it is very difficult for the average user to calculate the transaction size

play05:38

based on these factors.

play05:39

Luckily,

play05:40

your Bitcoin wallet will do this for you and suggest the fee you should pay,

play05:44

based on the average feerate at the moment of transaction.

play05:48

As a side note,

play05:49

you should know that the Bitcoin blockchain

play05:51

doesn’t list the fee paid for each transaction explicitly.

play05:55

The only way to deduce what fee was paid by the sender

play05:58

is to calculate the difference between how many Bitcoins were sent

play06:01

minus how many were received

play06:02

and how many were returned as change.

play06:05

Here’s an example to illustrate this:

play06:07

In the transaction you see on the screen,

play06:09

the input is 10 Bitcoins.

play06:11

The outputs are 1.9995 Bitcoins for the receiving address

play06:16

and 8 Bitcoins have been returned as change.

play06:19

From this we can calculate that the missing amount or 0.0005 Bitcoins

play06:24

has been paid as a fee.

play06:26

Let’s move on and explore ways for paying less in transaction fees.

play06:31

For starters,

play06:32

you can avoid sending transactions when the network is busy.

play06:35

When the Bitcoin network is extremely busy,

play06:38

for example, when the price spikes

play06:39

and many people are looking to buy Bitcoin,

play06:42

users will bid up their fees in order to prioritize their transactions.

play06:46

This can cause fees to become ridiculously expensive.

play06:50

If you can delay a transaction to a time when the network is less crowded

play06:54

you may be able to save a lot of money on fees.

play06:58

Another option would be to use a wallet that supports SegWit.

play07:02

SegWit, short for Segregated Witness,

play07:05

is a Bitcoin protocol upgrade which configures the transaction's data

play07:08

in such a way as to create a file that is smaller in size.

play07:12

Many wallets already support this feature

play07:14

and it can cut costs substantially.

play07:17

Grouping your inputs is a more advanced method for optimizing fees.

play07:22

The more inputs you need to create your transaction,

play07:24

the bigger its size,

play07:25

meaning the more fees you’ll need to pay for it.

play07:28

If you want to keep fees low,

play07:30

every once in a while you can consolidate your inputs.

play07:33

This is done by sending many small inputs to an address you own

play07:37

at a time when fees are low.

play07:39

This way, you will significantly reduce your future fees

play07:42

since you will only have one input.

play07:45

Aside from consolidating inputs

play07:47

you can also group multiple outputs or payments to one transaction.

play07:51

Not all wallets support this feature, but if your wallet allows this,

play07:55

you will be able to send payments to several addresses in one transaction

play07:59

which will reduce the required fee.

play08:02

Now let’s talk about how Bitcoin wallets deal with fees.

play08:07

Wallets attempt to recommend a reasonable fee,

play08:10

based on the current and recent levels of activity of the bitcoin network.

play08:14

Some wallets and services manage fees poorly and overbid fees,

play08:18

which in turn drives up the fees for everyone else as well.

play08:21

Most wallets allow you to adjust your fees

play08:23

or at least set a general fee preference like low, medium, or high.

play08:28

As I mentioned earlier,

play08:29

to choose the right fee

play08:31

you’ll first need to know your transaction size.

play08:34

If your wallet supplies you with that info,

play08:36

you can then use a feerate estimation table

play08:38

to figure out how much you need to pay

play08:40

in order to be included in the next block.

play08:42

Here’s an example:

play08:44

If your transaction size is 16,000 bytes

play08:46

and at the moment of transaction

play08:48

the average feerate to be included in the next block

play08:50

is 10 Satoshis per byte,

play08:52

then you’ll need to pay 10 X 16,000 or 160,000 Satoshis

play08:58

as a transaction fee,

play08:59

for a good chance to be included in the next block.

play09:02

Up until now

play09:03

we’ve covered what happens if you pay enough fees,

play09:05

but what happens if you don’t?

play09:08

While what I’m sharing with you in this video

play09:10

sheds some light on the topic of fees,

play09:12

most Bitcoin users aren’t “fee experts”.

play09:15

Therefore, more often than not

play09:17

and especially when the price rallies,

play09:19

and the network is crowded,

play09:20

you’ll hear of people complaining

play09:22

that their transaction is stuck as unconfirmed or pending.

play09:26

There are two things that can get a transaction stuck,

play09:28

so to speak :

play09:30

#1 You didn’t pay a high enough fee

play09:32

so miners prioritize other transactions over your own.

play09:35

or #2 You are trying to send coins from a transaction you received

play09:39

that hasn’t been confirmed yet,

play09:40

and yes, some wallets allow this.

play09:43

So what can you do?

play09:45

Well, here are your options:

play09:47

The first option would be just to wait it out.

play09:50

If your transaction isn’t urgent,

play09:52

take a break, and forget about it for at least 72 hours.

play09:56

There’s a good chance that it’ll sort itself out one way or another.

play09:59

Another option would be to use the Replace By Fee feature or RBF.

play10:04

RBF allows a wallet to rebroadcast a transaction

play10:08

with a higher fee.

play10:09

Bear in mind that not all wallets support RBF,

play10:12

and in certain wallets RBF is an opt-in feature.

play10:16

If your wallet does support RBF,

play10:18

it can save you a lot of fee-related headaches,

play10:21

and there’s really no downside to using it.

play10:24

You can also try transaction accelerators.

play10:27

There are different transaction accelerators

play10:29

which are operated by mining pools.

play10:31

They’ll add your transaction to the next block they mine

play10:34

if they have the capacity to do so.

play10:36

Some are free,

play10:36

while others are free below certain size limits,

play10:39

some mining pools charge upfront,

play10:41

while there are others that request tips.

play10:44

If all else fails you are left with two final options:

play10:48

Try to double spend the transaction

play10:50

or use “Child Pays for Parent”

play10:53

Double-spending sends the same transaction again,

play10:56

but with a higher fee.

play10:58

It’s much like RBF,

play10:59

but with one big difference:

play11:01

RBF transactions conform to agreed rules,

play11:04

and are incorporated in several wallet designs.

play11:07

On the other hand,

play11:08

double-spending is explicitly considered something you shouldn’t do.

play11:13

It’s actually one of the major problems that Bitcoin was created to solve

play11:17

and that all wallets are designed to prevent.

play11:21

Child Pays for Parent or CPFP

play11:23

means you essentially spend coins that are incoming

play11:26

but are yet unconfirmed,

play11:28

which is something I previously advised against.

play11:31

The idea behind this is that

play11:32

the fees on a new outgoing transaction

play11:35

will be high enough to cover

play11:36

both themselves and the unconfirmed incoming transactions they depend on.

play11:40

A miner may be enticed to mine the old, low-fee unconfirmed transaction,

play11:45

in order to claim the new, high-fee CPFP transaction,

play11:48

as it’s impossible to claim the new transaction

play11:51

before the old one is confirmed.

play11:53

Both these processes are rather difficult procedures

play11:56

which may place your funds at risk

play11:58

and are not intended for the average user

play12:00

so we won’t go over them in this guide.

play12:03

Many people often ask us,

play12:05

can my transaction get stuck forever?

play12:07

Well the short answer is no.

play12:10

The Correct answer is probably not,

play12:12

but it depends.

play12:13

Earlier in this video

play12:15

I talked about the transaction waiting in the mempool

play12:17

to get picked up by a miner.

play12:19

Well, the mempool doesn’t exist in just one place.

play12:23

Each computer or node that validates transactions

play12:26

has a part in its hard drive

play12:27

that is dedicated for storing pending transaction.

play12:31

So different nodes have different versions of the mempool,

play12:34

depending on which transactions they know about and remember.

play12:37

If a transaction is not confirmed for a long period of time,

play12:41

it will eventually be erased from a node's mempool.

play12:44

The current default time period for deletion is 72 hours

play12:48

but nodes may set their own duration.

play12:50

This is why waiting for at least 72 hours

play12:53

will probably yield one of two results:

play12:56

Either your transaction will get confirmed,

play12:57

or it will get erased from all of the mempools in the network

play13:00

and the funds will be returned to your wallet.

play13:03

Having said that,

play13:04

it’s possible that a certain node will never forget about your transaction,

play13:08

and may even occasionally rebroadcast it,

play13:11

which reminds other nodes about it.

play13:13

In that case,

play13:14

your transaction can be stuck forever

play13:16

unless you use some of the methods I’ve mentioned earlier.

play13:20

As you can see

play13:21

the issue of fees is pretty complex

play13:23

and can be a topic for a lot of controversy.

play13:26

Keeping fees low is important

play13:27

since having a cheap peer to peer payment system

play13:30

is one of the goals Bitcoin was created to achieve,

play13:33

but as always there are other considerations

play13:35

to take into account, aside of low fees.

play13:38

As Bitcoin grows in popularity,

play13:40

more and more people will begin using it

play13:43

and the network needs to find new solutions to handle the demand.

play13:47

One promising candidate for such a solution

play13:49

is the Lightning Network.

play13:51

While it’s not quite ready for mainstream adoption,

play13:54

the Lightning Network promises nearly instant, free transactions

play13:57

to all Bitcoiners

play13:59

but that’s a topic for a different video.

play14:01

Hopefully by now you better understand the topic of fees

play14:04

and how they act as a method of prioritizing Bitcoin transactions.

play14:08

You may still have some questions.

play14:10

If so, just leave them in the comment section below.

play14:13

And if you’re watching this video on YouTube,

play14:15

and enjoy what you’ve seen,

play14:16

don’t forget to hit the like button.

play14:17

Then make sure to subscribe to the channel and click that bell

play14:20

so that you’ll be notified as soon as we post new episodes.

play14:24

Thanks for joining me here at the Whiteboard.

play14:25

For 99Bitcoins.com, I’m Nate Martin,

play14:28

and I’ll see you… in a bit.

Rate This

5.0 / 5 (0 votes)

Related Tags
Bitcoin FeesTransaction PriorityMinersMempoolUnconfirmed TransactionsFee CalculationSegWitInput ConsolidationWallet FeaturesReplace By FeeTransaction AcceleratorsDouble SpendChild Pays for ParentLightning NetworkBlockchain TechnologyCryptocurrency EducationPeer-to-Peer PaymentsNetwork CongestionTransaction SizeFee OptimizationBitcoin ProtocolTransaction Validation