Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: metalbean on August 16, 2017, 02:54:17 AM



Title: What determines the transaction size?
Post by: metalbean on August 16, 2017, 02:54:17 AM
Yo peeps,

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

It is mostly between 200-500 bytes.

Thanks for educating :)


Title: Re: What determines the transaction size?
Post by: An0nyMoose on August 16, 2017, 03:03:03 AM
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.


Title: Re: What determines the transaction size?
Post by: metalbean on August 16, 2017, 03:18:02 AM
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 ;)


Title: Re: What determines the transaction size?
Post by: krishnapramod on August 16, 2017, 03:34:38 AM
Yo peeps,

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

It is mostly between 200-500 bytes.

Thanks for educating :)

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.


Title: Re: What determines the transaction size?
Post by: skyline247 on August 16, 2017, 03:39:13 AM
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.


Title: Re: What determines the transaction size?
Post by: metalbean on August 16, 2017, 03:42:30 AM
Yo peeps,

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

It is mostly between 200-500 bytes.

Thanks for educating :)

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?


Title: Re: What determines the transaction size?
Post by: pooya87 on August 16, 2017, 03:51:15 AM
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