Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: markcolls on December 02, 2020, 06:07:51 AM



Title: Why does the fee I set in electrum not match the actual fee?
Post by: markcolls on December 02, 2020, 06:07:51 AM
I set a fee of 27 sat/byte in electrum, but it came out as 15.5 sat/byte. This happens every time with electrum. How do I correctly set fees in electrum?


Title: Re: Why does the fee I set in electrum not match the actual fee?
Post by: winrate.io on December 02, 2020, 06:09:50 AM
Do you only have this issue with electrum or does this apply on others as well?


Title: Re: Why does the fee I set in electrum not match the actual fee?
Post by: TryNinja on December 02, 2020, 06:17:29 AM
Your fee is correct. You chose a fee of 27 sat/vByte, which equals to the 15.5 sat/byte you see. If you use a different block explorer, like Blockstream.info (http://Blockstream.info), it will show up in the correct unit, which is the one that matters (sat/vByte).

Take a look at this thread for a better explanation: Fee and Size are different at wallet and explorer (https://bitcointalk.org/index.php?topic=5147880.0)


Title: Re: Why does the fee I set in electrum not match the actual fee?
Post by: pooya87 on December 02, 2020, 06:18:12 AM
It is probably because the other place you are checking your transaction on (like a block explorer) is not computing the fees correctly or you aren't paying attention to the unit that was used. There is fee per virtual size (sat/vbyte) value and fee per size (satoshi/byte) value. We have been useing the former to set fees and compare them in bitcoin for the past 3 years.
Can't say more without knowing where you get 15.5 from.


Title: Re: Why does the fee I set in electrum not match the actual fee?
Post by: nc50lc on December 02, 2020, 07:27:42 AM
I set a fee of 27 sat/byte in electrum, but it came out as 15.5 sat/byte. This happens every time with electrum. How do I correctly set fees in electrum?
Aside from TryNinja's (correct) answer: that will only happen when you're using SegWit.
The reason why those explorers can't compute the same fee as Electrum does is because they're not taking the virtual size in consideration.
And SegWit transaction's "virtual size" is lower than its "size", so the fee per Byte will always be computed lower than fee per virtual Byte when it comes with SegWit.

But when it comes with prioritization, miners will take what you've set in Electrum because it's actually "sat/vByte" although it's displayed as "sat/byte".