Author

Topic: What determines the transaction size? (Read 425 times)

legendary
Activity: 3472
Merit: 10611
August 15, 2017, 10:51:15 PM
#7
Each input adds 180 bytes to the transaction.
Each output adds 34 bytes to the transaction.
There is a fixed 10 bytes per transaction.
Transaction size = 180 bytes per input + 34 bytes per output + 10 bytes

This transaction has a size of 224 bytes, https://blockchain.info/tx/4c1ad203e13a0b185fa870e751879f127307d08f67e30508a4682537ad64d05a

1*180 + 1*34 +10 = 224
A typical transaction is around 500 bytes.

your tx example has 2 outputs which means your calculation should be like this:
1*180 + 2*34 +10 = 258

the reason why you are getting a wrong number is that you read the "old description" of how to calculate transaction size not the new one.
the 180 is for uncompressed keys, these days (like your example key) all keys are compressed and 180 should be 148 instead
full member
Activity: 448
Merit: 103
August 15, 2017, 10:42:30 PM
#6
Yo peeps,

Just wondering, what determines the transaction size? Simply random or?

It is mostly between 200-500 bytes.

Thanks for educating Smiley

Each input adds 180 bytes to the transaction.

Each output adds 34 bytes to the transaction.

There is a fixed 10 bytes per transaction.

Transaction size = 180 bytes per input + 34 bytes per output + 10 bytes

This transaction has a size of 224 bytes, https://blockchain.info/tx/4c1ad203e13a0b185fa870e751879f127307d08f67e30508a4682537ad64d05a

1*180 + 1*34 +10 = 224

A typical transaction is around 500 bytes.


That's very mathematical, I like that.

What' an input and output though? Input = incoming transaction?
hero member
Activity: 700
Merit: 500
August 15, 2017, 10:39:13 PM
#5
I think it depends on the amount of Bitcoin you are sending, but I could be completely wrong.

See, the more you send the larger the transaction therefore the larger your fee must be, etc.

At least that is what I noticed as each time I send Bitcoin the fee goes higher if I am sending more or lower if I am sending less.
legendary
Activity: 1470
Merit: 1079
August 15, 2017, 10:34:38 PM
#4
Yo peeps,

Just wondering, what determines the transaction size? Simply random or?

It is mostly between 200-500 bytes.

Thanks for educating Smiley

Each input adds 180 bytes to the transaction.

Each output adds 34 bytes to the transaction.

There is a fixed 10 bytes per transaction.

Transaction size = 180 bytes per input + 34 bytes per output + 10 bytes

This transaction has a size of 224 bytes, https://blockchain.info/tx/4c1ad203e13a0b185fa870e751879f127307d08f67e30508a4682537ad64d05a

1*180 + 1*34 +10 = 224

A typical transaction is around 500 bytes.


That's very mathematical, I like that.

What' an input and output though? Input = incoming transaction?

https://en.bitcoin.it/wiki/Transaction

https://www.coindesk.com/information/how-do-bitcoin-transactions-work/

https://bitcoin.stackexchange.com/questions/35570/what-is-the-maximum-number-of-inputs-outputs-a-transaction-can-have


your tx example has 2 outputs which means your calculation should be like this:
1*180 + 2*34 +10 = 258

the reason why you are getting a wrong number is that you read the "old description" of how to calculate transaction size not the new one.
the 180 is for uncompressed keys, these days (like your example key) all keys are compressed and 180 should be 148 instead

Yeah, just searched and found input of compressed keys is 148 bytes. Thank you for pointing it out.
full member
Activity: 448
Merit: 103
August 15, 2017, 10:18:02 PM
#3
Transaction fees depends upon how many transactions are currently being processed by the network and the more transactions being processed by the network at any given time means the fees will go up accordingly.

Please read my question Wink
sr. member
Activity: 490
Merit: 255
August 15, 2017, 10:03:03 PM
#2
Transaction fees depends upon how many transactions are currently being processed by the network and the more transactions being processed by the network at any given time means the fees will go up accordingly.
full member
Activity: 448
Merit: 103
August 15, 2017, 09:54:17 PM
#1
Yo peeps,

Just wondering, what determines the transaction size? Simply random or?

It is mostly between 200-500 bytes.

Thanks for educating Smiley
Jump to: