Bitcoin Forum
October 21, 2024, 03:59:58 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum Segwit Transaction size  (Read 142 times)
TheQuin (OP)
Hero Member
*****
Offline Offline

Activity: 2576
Merit: 883


Freebitco.in Support https://bit.ly/2I9BVS2


View Profile WWW
December 13, 2017, 10:52:37 AM
 #1

I'm using an Electrum wallet with Segwit bech32/base32 (bc1) addresses and sent a transaction:

f0dc723b3337523dfa61555f2d4c214a0b6b42e5699d1e39df11b699d61e2fa5

(Yes I know it is a low fee, I'm not in any hurry.)

According to Electrum, the transaction is 212 bytes.

According to blockchain.info the transaction is 374 bytes

According to blocktrail.com the transaction is 157 bytes

Does anybody know a) which one is correct? b) why the discrepancy?


freebitcoin.TO WIN A  LAMBORGHINI!..

.
                                ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
                    ▄▄▄▄▄██████████████████████████████████▄▄▄▄
                    ▀██████████████████████████████████████████████▄▄▄
                    ▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
                    ▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
                      ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
                           ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
December 13, 2017, 12:38:46 PM
 #2

https://btc.com/f0dc723b3337523dfa61555f2d4c214a0b6b42e5699d1e39df11b699d61e2fa5

virtual size 212 bytes. raw transaction is 374 bytes

see this: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
TheQuin (OP)
Hero Member
*****
Offline Offline

Activity: 2576
Merit: 883


Freebitco.in Support https://bit.ly/2I9BVS2


View Profile WWW
December 13, 2017, 01:05:46 PM
 #3

Thanks for the links Abdussamad. Am I correct in the assumption that I was correct to calculate the fee based on the virtual size? Also that the size displayed on blocktrail.com is just wrong.



freebitcoin.TO WIN A  LAMBORGHINI!..

.
                                ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
                    ▄▄▄▄▄██████████████████████████████████▄▄▄▄
                    ▀██████████████████████████████████████████████▄▄▄
                    ▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
                    ▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
                      ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
                           ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Pages: [1]
  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!