Bitcoin Forum
May 05, 2024, 09:20:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to work out how much data your transaction will use?  (Read 368 times)
helloeverybody (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile WWW
February 29, 2016, 04:50:40 PM
 #1

Can anyone explain how the transaction sizes are calculated? For example if i send 1million btc will this take up the whole 1mb? Im not quite sure how this is all calculated.

1714900807
Hero Member
*
Offline Offline

Posts: 1714900807

View Profile Personal Message (Offline)

Ignore
1714900807
Reply with quote  #2

1714900807
Report to moderator
1714900807
Hero Member
*
Offline Offline

Posts: 1714900807

View Profile Personal Message (Offline)

Ignore
1714900807
Reply with quote  #2

1714900807
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714900807
Hero Member
*
Offline Offline

Posts: 1714900807

View Profile Personal Message (Offline)

Ignore
1714900807
Reply with quote  #2

1714900807
Report to moderator
1714900807
Hero Member
*
Offline Offline

Posts: 1714900807

View Profile Personal Message (Offline)

Ignore
1714900807
Reply with quote  #2

1714900807
Report to moderator
1714900807
Hero Member
*
Offline Offline

Posts: 1714900807

View Profile Personal Message (Offline)

Ignore
1714900807
Reply with quote  #2

1714900807
Report to moderator
--Encrypted--
Copper Member
Legendary
*
Offline Offline

Activity: 924
Merit: 1007

hee-ho.


View Profile
February 29, 2016, 04:54:06 PM
 #2

Can anyone explain how the transaction sizes are calculated? For example if i send 1million btc will this take up the whole 1mb? Im not quite sure how this is all calculated.

it's calculated from the number of input and output.
10 + {I*180} + {O*24} = tx size in byte. give or take few bytes.

edit:
there's a more technical explanation here.
helloeverybody (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile WWW
February 29, 2016, 05:00:40 PM
 #3

Can anyone explain how the transaction sizes are calculated? For example if i send 1million btc will this take up the whole 1mb? Im not quite sure how this is all calculated.

it's calculated from the number of input and output.
10 + {I*180} + {O*24} = tx size in byte. give or take few bytes.

edit:
there's a more technical explanation here.

Thanks i was thinking it might have been a bit simpler lol. I will have a read over that and try and get my head round it.

--Encrypted--
Copper Member
Legendary
*
Offline Offline

Activity: 924
Merit: 1007

hee-ho.


View Profile
February 29, 2016, 05:27:10 PM
 #4

just found out that that thing I posted above is kind of outdated.
now it's
10 + {I*148} + {O*34} plus or minus 'I' = size. give or take few bytes.

source of that here. it's actually not that hard to understand.
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!