Bitcoin Forum
June 21, 2024, 07:31:20 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What determines the transaction size?  (Read 391 times)
metalbean (OP)
Full Member
***
Offline Offline

Activity: 448
Merit: 103



View Profile
August 16, 2017, 02:54:17 AM
 #1

Yo peeps,

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

It is mostly between 200-500 bytes.

Thanks for educating Smiley
An0nyMoose
Sr. Member
****
Offline Offline

Activity: 490
Merit: 255



View Profile
August 16, 2017, 03:03:03 AM
 #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.

Blockonomics                          ██
                         ████  ██
   
          ▄▄▄███████▄▄▄ ████  ████  ██
      ▄▄█████████████████▄▄  ████  ████
    ▄█████▀▀         ▀▀█████▄ ██  ████
   ████▀                 ▀████   ████
  ████      ████████▄      ████ ████
 ████        ██    ██▄      ████ ██
████         ██     ██       ████
████         ██   ▄██▀       ████
████         ███████         ████
████         ██    ██▄       ████
████         ██     ██       ████
 ████        ██    ██▀      ████
  ████      ████████▀      ████
   ████▄                 ▄████
    ▀█████▄▄         ▄▄█████▀
      ▀▀█████████████████▀▀
          ▀▀▀███████▀▀▀
metalbean (OP)
Full Member
***
Offline Offline

Activity: 448
Merit: 103



View Profile
August 16, 2017, 03:18:02 AM
 #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
krishnapramod
Legendary
*
Offline Offline

Activity: 1470
Merit: 1078


View Profile
August 16, 2017, 03:34:38 AM
Last edit: August 16, 2017, 04:01:27 AM by krishnapramod
 #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.
skyline247
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile
August 16, 2017, 03:39:13 AM
 #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.
metalbean (OP)
Full Member
***
Offline Offline

Activity: 448
Merit: 103



View Profile
August 16, 2017, 03:42:30 AM
 #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?
pooya87
Legendary
*
Offline Offline

Activity: 3486
Merit: 10666



View Profile
August 16, 2017, 03:51:15 AM
 #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

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!