Bitcoin Forum
April 26, 2024, 10:45:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: How do we calculate the correct transaction fee to send?  (Read 472 times)
gentleman2019 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 27


View Profile
January 15, 2020, 05:36:59 PM
Merited by OmegaStarScream (1), hugeblack (1)
 #1

What's the simplest way of calculating the optimum fee? For 'Satoshi per byte', is it possible to know how many bytes the transaction is likely to take?

Also, suppose the transaction is not urgent (say changing BTC between own wallets or sending to a relative), can it be sent with very low fee? What's the worse that can happen - will the transcation get cancelled/not go through on the blockchain?

Thanks!
1714171532
Hero Member
*
Offline Offline

Posts: 1714171532

View Profile Personal Message (Offline)

Ignore
1714171532
Reply with quote  #2

1714171532
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714171532
Hero Member
*
Offline Offline

Posts: 1714171532

View Profile Personal Message (Offline)

Ignore
1714171532
Reply with quote  #2

1714171532
Report to moderator
1714171532
Hero Member
*
Offline Offline

Posts: 1714171532

View Profile Personal Message (Offline)

Ignore
1714171532
Reply with quote  #2

1714171532
Report to moderator
bitmover
Legendary
*
Offline Offline

Activity: 2282
Merit: 5887


bitcoindata.science


View Profile WWW
January 15, 2020, 05:41:13 PM
Merited by OmegaStarScream (1), DdmrDdmr (1)
 #2

If you are not in a hurry, just set 1 sat/byte and it will be confirmed in a few hours
 Last week a sent a transaction like this that was confirmed in about 8 hours.

To see how much your transaction will cost, take a loop here:
https://www.buybitcoinworldwide.com/fee-calculator/

It will depend on:
Number of inputs
Number of outputs
Type of address (segtwit or legacy)



Before you ask:
Inputs are generated each time you receive btc. For every btc transaction you receive,  you have a new input. The more inputs, the more expensive the transaction.
Outputs are how many destination addresses.  Usually you will need 2 (one for destination and one for the change, back to you)

If you have a input of 0.5 and want to transfer 0.1 btC, you will receive 0.4 back in a change address.

You can consolidate your inputs when fees are low, at 1 sat byte. Take a look here
https://bitcointalk.org/index.php?topic=2848987.0

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
bullrun2024bro
Legendary
*
Offline Offline

Activity: 1582
Merit: 4328



View Profile
January 15, 2020, 05:41:41 PM
Last edit: May 03, 2020, 01:20:31 AM by bullrun2020bro
Merited by Tyrantt (7), OmegaStarScream (1)
 #3

A very interesting article concerning Bitcoin transaction fees can be found here: Bitcoin Transaction Fees Explained [Complete Guide]

Websites to calculate the optimal Bitcoin transaction fees are e.g.:

https://Estimatefee.com "is a simple website that calculates the cost (in satoshis and USD) for a bitcoin transaction based on how much of hurry you are to move your coins from A to B."

https://Bitcoinfees.info "displays slow/medium/fast fees in USD with no muss and no fuss."

Source: https://bitnewsbot.com/how-to-calculate-bitcoin-transaction-fees-when-youre-in-a-hurry/

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3458
Merit: 6099



View Profile
January 15, 2020, 06:09:03 PM
 #4

Websites to calculate the optimal Bitcoin transaction fees are e.g.:
https://Estimatefee.com "is a simple website that calculates the cost (in satoshis and USD) for a bitcoin transaction based on how much of hurry you are to move your coins from A to B."

https://Bitcoinfees.info "displays slow/medium/fast fees in USD with no muss and no fuss."

I've tried Earn.com and the ones you mentioned before, and I found all of them to be overestimating fees. I suggest this one, it's far more accurate: https://coinb.in/#fees

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1610
Merit: 1899

Amazon Prime Member #7


View Profile
January 15, 2020, 06:23:43 PM
Last edit: January 16, 2020, 12:02:22 AM by PrimeNumber7
 #5

There are various sites that use various algorithms to estimate the required fee to get your transaction included in a block. I would suggest https://bitcoinfees.earn.com/ that is both simple and gives you enough information to estimate how large a fee to include depending on how quickly you want your transaction to confirm. /edit - you should review the chart to decide how much to pay for your transaction fee

To answer your other question, yes you can include a very small fee and it might take a long to for your transaction to confirm if it ever does. After several days, most nodes will ‘forget’ your transaction if it doesn’t confirm but it will remain valid as long as all the inputs remain unspent. This means someone may broadcast your transaction long into the future if it is still valid. This means you should keep your private keys, including backups if you ever even try unsuccessfully to send coin between wallets.
figmentofmyass
Legendary
*
Offline Offline

Activity: 1652
Merit: 1483



View Profile
January 15, 2020, 08:13:23 PM
Merited by o_e_l_e_o (2), hugeblack (1)
 #6

What's the simplest way of calculating the optimum fee? For 'Satoshi per byte', is it possible to know how many bytes the transaction is likely to take?

yes, here is an in-depth breakdown of how transaction size is calculated: https://bitcoin.stackexchange.com/a/92700

this definitely isn't the simplest way though. a good wallet like electrum will show you the actual transaction size in bytes and allow you to choose the fee rate in satoshi/byte. https://bitcoin.org/en/wallets/desktop/windows/electrum/

I've tried Earn.com and the ones you mentioned before, and I found all of them to be overestimating fees. I suggest this one, it's far more accurate: https://coinb.in/#fees

i didn't know coinb.in had a fee estimator. it's a tad frustrating that they include bech32 as an option for inputs but not outputs. it makes a difference due to the segwit discount. the lowest possible recommended fee on coinb.in is 0.00000144 BTC but it should be closer to 0.00000110 BTC.

my preference is for Jochen Hoenicke's fee estimator. great visualization for estimating different priority times, ie next block vs within 8 hours, etc: https://jochen-hoenicke.de/queue/#0,24h

o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
January 15, 2020, 08:55:01 PM
 #7

my preference is for Jochen Hoenicke's fee estimator.
+1 for Johoe's site. It's the only site I use for deciding what fee I want to pay. There is a great guide on how to understand and interpret the graphs on 1miau's post here: https://bitcointalk.org/index.php?topic=5182906.0 (scroll down to item 5).

Every site which tells you a fee is using some sort of automatic algorithm. Sometimes they are quite accurate, other times they are not. Only you know how urgent or not your transaction is, and it's far easier to see if the mempool is filling up or emptying if you eyeball it yourself. If you really just want a site to tell you a fee to pay, then pick https://www.coinb.in/#fees.

What's the worse that can happen - will the transcation get cancelled/not go through on the blockchain?
The transaction will almost always confirm eventually, you might just be waiting a couple of days. In the event that the mempool becomes very full and your transaction has a very low fee, it will eventually be dropped from all nodes and you can simply try to spend the coins again. If you use a wallet like Electrum, you can enable a feature called RBF or Replace By Fee - with this enabled, if your transaction is taking too long to confirm, you can boost the fee to have it confirm faster.

This site is only useful if you look at the charts yourself. Their suggested fee at the bottom is usually way too much unless you absolutely need to get in to the next block. At the moment their suggest fee is 22 sats/byte, which would put you around 0.05 MB from the tip of the mempool.
bullrun2024bro
Legendary
*
Offline Offline

Activity: 1582
Merit: 4328



View Profile
January 15, 2020, 10:05:53 PM
 #8

Websites to calculate the optimal Bitcoin transaction fees are e.g.:
https://Estimatefee.com "is a simple website that calculates the cost (in satoshis and USD) for a bitcoin transaction based on how much of hurry you are to move your coins from A to B."

https://Bitcoinfees.info "displays slow/medium/fast fees in USD with no muss and no fuss."

I've tried Earn.com and the ones you mentioned before, and I found all of them to be overestimating fees. I suggest this one, it's far more accurate: https://coinb.in/#fees


Oh thanks a lot for that advise! I will check it out. Learning every day!  Wink

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
malevolent
can into space
Legendary
*
Offline Offline

Activity: 3472
Merit: 1721



View Profile
January 15, 2020, 10:12:21 PM
 #9

I've tried Earn.com and the ones you mentioned before, and I found all of them to be overestimating fees. I suggest this one, it's far more accurate: https://coinb.in/#fees

That's because some of these sites will only show estimations for transactions involving legacy Bitcoin addresses.

Signature space available for rent.
gentleman2019 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 27


View Profile
January 15, 2020, 10:21:06 PM
 #10

To answer your other question, yes you can include a very small fee and it might take a long to for your transaction to confirm if it ever does. After several days, most nodes will ‘forget’ your transaction if it doesn’t confirm but it will remain valid as long as all the inputs remain unspent. This means someone may broadcast your transaction long into the future if it is still valid. This means you should keep your private keys, including backups if you ever even try unsuccessfully to send coin between wallets.

Wow, so there is no way to cancel an unconfirmed transaction even after say 2 weeks of it being unconfirmed? What happens then? How to get it on the blockchain later?
BitMaxz
Legendary
*
Online Online

Activity: 3234
Merit: 2943


Block halving is coming.


View Profile WWW
January 15, 2020, 11:38:28 PM
 #11

To answer your other question, yes you can include a very small fee and it might take a long to for your transaction to confirm if it ever does. After several days, most nodes will ‘forget’ your transaction if it doesn’t confirm but it will remain valid as long as all the inputs remain unspent. This means someone may broadcast your transaction long into the future if it is still valid. This means you should keep your private keys, including backups if you ever even try unsuccessfully to send coin between wallets.

Wow, so there is no way to cancel an unconfirmed transaction even after say 2 weeks of it being unconfirmed? What happens then? How to get it on the blockchain later?

No there's no way to cancel unconfirmed transaction it will just be rejected by the nodes it is not likely the same as you make a transaction offline where you can just delete the transaction and make a new signed transaction.
Based on my experience before with Electrum my unconfirmed transaction for almost a week it gets rejected and the transaction will be gone in the transaction history. So if you don't have the raw transaction you can't rebroadcast them again but if you have a copy of raw transaction you can rebroadcast it.

Anyway, If your transaction gets rejected you can make a new transaction again as normal as sending. If you don't want the transaction gets rejected always check the recommended fee from coinb.in or bitcoinfees.earn.com Because if the recommended fee increases and you pay 1sat/byte there is a big chance that your transaction will be rejected again. That is why it's recommended to use the recommended fee from Electrum.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1610
Merit: 1899

Amazon Prime Member #7


View Profile
January 16, 2020, 12:01:52 AM
 #12

This site is only useful if you look at the charts yourself. Their suggested fee at the bottom is usually way too much unless you absolutely need to get in to the next block. At the moment their suggest fee is 22 sats/byte, which would put you around 0.05 MB from the tip of the mempool.
Agreed, and edited my post.

To answer your other question, yes you can include a very small fee and it might take a long to for your transaction to confirm if it ever does. After several days, most nodes will ‘forget’ your transaction if it doesn’t confirm but it will remain valid as long as all the inputs remain unspent. This means someone may broadcast your transaction long into the future if it is still valid. This means you should keep your private keys, including backups if you ever even try unsuccessfully to send coin between wallets.

Wow, so there is no way to cancel an unconfirmed transaction even after say 2 weeks of it being unconfirmed? What happens then? How to get it on the blockchain later?
If you spend one or more of the inputs from the original transaction, the entire original transaction will become invalid. If the original transaction does not confirm after a couple of days, most nodes will 'forget' about your original transaction and will accept a new transaction with the same inputs, but if you do not spend one or more of the inputs, the transaction will forever remain valid.

This really only matters if you send coin to a new wallet, the transaction doesn't confirm and you lose the private keys to your new wallet.
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10504



View Profile
January 16, 2020, 05:57:48 AM
 #13

How do we calculate the correct transaction fee to send?
is it possible to know how many bytes the transaction is likely to take?

you search for a wallet that is developed by a competent developer so that it can calculate the correct transaction size and then sets the appropriate fee based on your selection of "priority level" not fee itself.
seriously though, you shouldn't try to calculate transaction size and fees on your own. there is a very good chance you will mess it up and stay away from website such as bitcoinfees.earn.com they are horrible at suggesting fees.

my suggestion is Electrum. it is doing a pretty good job and it is user friendly. all you have to do is to enable the fee slider and the more to the left is less priority and the more you pull it to the right you get higher priority.

if you want to know the technical details of how size (or rather weight) is calculated then it is a different question. for that you'll need some prior knowledge of transaction structure, scripts, signature hash types, and serialization of transactions for signing with each different script type. and depending on each script type you'll get a different size and weight and depending on what crypto library is being used you may get fixed length signatures or with 1-2 byte difference which you need to account for when setting the minimum fee.
i can explain each details of it if you want but it will be tedious and may not be what you are looking for.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
hd49728
Legendary
*
Offline Offline

Activity: 2072
Merit: 1027



View Profile WWW
January 16, 2020, 06:26:25 AM
 #14

OP can take a look at my topic: Bitcoin Transaction Fees - Everything in one
You can check the estimated fees on https://coinb.in/#fees to see good fees you can set for your transaction at each time. For example, if the suggested fee is 1 satoshis, I advice you to set your fees at 2 or 3 satoshis in order to make sure that your transactions will be confirmed faster whilst there is not much more additional fee between 1 and 3 satoshis/ byte.

This one: https://whatthefee.io/ gives you the table with the probability to get confirmations with each level of transaction fees.

In order to make sure that you choose the right time to move your coins, take a look at mempool: https://www.blockchain.com/charts/mempool-count?timespan=60days. Don't move your coins when mempool shows spikes.

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
leoqe
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
January 16, 2020, 07:26:20 AM
 #15

The size of the fee depends on many factors, including the conditions of the wallet that you use. Everywhere conditions are different. Therefore, first of all, study the conditions of your wallet or better ask your wallet support to write everything in detail. Sometimes it’s a lot easier than figuring it out yourself!
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
January 16, 2020, 08:41:30 PM
 #16

In order to make sure that you choose the right time to move your coins, take a look at mempool: https://www.blockchain.com/charts/mempool-count?timespan=60days.
This a poor graph to use to visualize the mempool in the context of working out a fee. A better choice is the third graph on Johoe's site here (https://jochen-hoenicke.de/queue/#1,8h) entitled "Mempool Size in MB".

The reason for this is because the graph you linked to shows the number of unconfirmed transactions, whereas the graph I've linked to shows the size in MB of these unconfirmed transactions. Why is this important? I'll use two examples to illustrate my point. Lets say first of all that the mempool contains 10,000 transactions, but each transaction is less than 250 vbytes in size. This means the mempool is actually relatively empty at only 2.5 MB, and could completely empty in only 3 blocks. Conversely, lets now say the mempool contains only 1,000 transactions, but they are all huge consolidation transaction from various exchanges, and each one is 30,000 vbytes in size. Now the mempool is the fullest it has been in months at over 30 MB.

So using the graph you linked, if we see 1,000 or 10,000 transaction, we don't actually know how full the mempool is because we don't know the size of those transactions, which is what actually matters. Blocks are limited by size, not by number of transactions. A block could contain anywhere from 0 to over 4000 transactions.
Febo
Legendary
*
Offline Offline

Activity: 2730
Merit: 1288



View Profile
January 16, 2020, 09:45:52 PM
 #17

Also, suppose the transaction is not urgent (say changing BTC between own wallets or sending to a relative), can it be sent with very low fee? What's the worse that can happen - will the transcation get cancelled/not go through on the blockchain?

Not directly related, but you mention not urgent transaction. I noticed that usually mempool gets fuller towards end of the week and empty over weekends. So cheapest day to send a transaction is Sunday. Or the fastest day to send cheap transaction.
hosseinimr93
Legendary
*
Online Online

Activity: 2380
Merit: 5213



View Profile
January 16, 2020, 10:18:49 PM
 #18

Also, suppose the transaction is not urgent (say changing BTC between own wallets or sending to a relative), can it be sent with very low fee? What's the worse that can happen - will the transcation get cancelled/not go through on the blockchain?

Not directly related, but you mention not urgent transaction. I noticed that usually mempool gets fuller towards end of the week and empty over weekends. So cheapest day to send a transaction is Sunday. Or the fastest day to send cheap transaction.

You made me curious about transaction fee in different days of week.
I calculated the average transaction fee for different days of the week in the past three months. (Raw data from https://bitinfocharts.com/)

Monday: 0.70 $
Tuesday: 0.70 $
Wednesday: 0.71 $
Thursday: 0.71 $
Friday: 0.74 $
Saturday: 0.63 $
Sunday: 0.57 $

You were right. I hadn't ever noticed this.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
hd49728
Legendary
*
Offline Offline

Activity: 2072
Merit: 1027



View Profile WWW
January 17, 2020, 03:20:46 AM
Merited by o_e_l_e_o (2)
 #19

This a poor graph to use to visualize the mempool in the context of working out a fee. A better choice is the third graph on Johoe's site here (https://jochen-hoenicke.de/queue/#1,8h) entitled "Mempool Size in MB".

The reason for this is because the graph you linked to shows the number of unconfirmed transactions, whereas the graph I've linked to shows the size in MB of these unconfirmed transactions. Why is this important? I'll use two examples to illustrate my point. Lets say first of all that the mempool contains 10,000 transactions, but each transaction is less than 250 vbytes in size. This means the mempool is actually relatively empty at only 2.5 MB, and could completely empty in only 3 blocks. Conversely, lets now say the mempool contains only 1,000 transactions, but they are all huge consolidation transaction from various exchanges, and each one is 30,000 vbytes in size. Now the mempool is the fullest it has been in months at over 30 MB.

So using the graph you linked, if we see 1,000 or 10,000 transaction, we don't actually know how full the mempool is because we don't know the size of those transactions, which is what actually matters. Blocks are limited by size, not by number of transactions. A block could contain anywhere from 0 to over 4000 transactions.
Thank you. I did not realize that importance. The number of transactions and sum size of transactions in membpool are very different, and the difference play important role to consolidate coins, especially if people consolidate their coins with low fees.

By the way, could you help me with the conversion of fees from satoshi/ byte to satoshi / vbyte, please.
The difference between: https://coinb.in/#fees and https://btc.com/stats/unconfirmed-tx, then how to make conversion?

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
January 17, 2020, 09:38:20 AM
Merited by hosseinimr93 (1), AdolfinWolf (1)
 #20

By the way, could you help me with the conversion of fees from satoshi/ byte to satoshi / vbyte, please.
The difference between: https://coinb.in/#fees and https://btc.com/stats/unconfirmed-tx, then how to make conversion?
So, the simple answer here is that coinb.in/#fees is stating the fee in sats/vbyte, although they call it sats/byte. We can tell this because the transaction sizes they show are different for legacy and SegWit transactions.

The longer answer is more complicated, and there is no straightforward way to "convert" between the two, since it depends entirely on the particular transaction you are looking at.

Plain bytes are not used to measure the size of transactions anymore, since the SegWit soft fork. Instead we use weight units. You can read more about these here: https://en.bitcoin.it/wiki/Weight_units. Essentially, insteading of blocks being able to hold 1 million bytes, they now hold 4 million weight units. For legacy transactions, each byte takes up 4 weight units, so the effective size of these transactions doesn't change. For SegWit transactions, however, the witness data only takes up 1 weight unit per byte, so the effective size is smaller. To prevent having to multiply and divide by 4 all the time, lots of people instead use virtual bytes or vbytes, which again, are equal to 4 weight units. So a block can contain 1 million vbytes.

This means that for legacy transactions, 1 byte of transaction data takes up 1 vbyte on the block, but for SegWit transactions, 1 byte of witness data will only take up 0.25 vbytes of block space (the non witness data is unchanged, and still takes up 1 vbyte per byte). This makes SegWit transactions take up less block space, and therefore, cost less in fees.

Now for some examples. Take a look at this legacy transaction: https://blockchair.com/bitcoin/transaction/b74c4d36e9835923556b34f53fead7c9d51c03435e80805a2c8b904852a8a35f

You can see its size is 224, and its weight is 896, which is exactly 4 times its size. This is because it is a legacy transaction. Its fee per vbyte and fee per byte are the same.

Now look at this SegWit transaction: https://blockchair.com/bitcoin/transaction/dcddd311deb7c4a4a2b63b10bc762badc7a0fcefd7afc336838cc2f57e326360

It has a size of 374, but its weight is only 1,169, which is about 3.1 times its size. Its fee per vbyte is higher than its fee per byte, because some of the bytes (the witness data) are "discounted" as explained above.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!