Author

Topic: how to calculate the transaction size (Read 896 times)

legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
January 23, 2016, 05:56:56 AM
#4
As reported in the Bitcoin Wiki, every 1,000 bytes of data in a transaction adds 0.1 mBTC to the fee. Any size below an even thousand is rounded up to the nearest thousand. For example, the fee on a 675-byte transaction would be 0.1 mBTC. Likewise, the fee on a 1,345-byte transaction would be 0.2 mBTC.
To estimate a fee, we need a way to relate the number of transaction inputs (in) and outputs (out) to it's size in bytes (size). The exact size of a transaction can only be determined after it has been signed, which is unfortunately too late to be of much use in many wallet programs. However, the upper size limit can be
found with this equation:
Code:
size = 181 * in + 34 * out + 10
[]-> http://bitzuma.com/posts/making-sense-of-bitcoin-transaction-fees/
It is not always accurate due to a variety of factors. Most clients calculate this automatically for you. The fee is not 0.1mBTC/kb, it can be as low as 0mBTC or 0.05mBTC/kb for non-free transactions.

Your information is also out of date. The equation you posted is out of date, it uses uncompressed key which is not what most wallets implement right now. Compressed keys uses this equation
Code:
134byte*/input+ 32byte/output*
. This is not quite accurate and can vary for various transactions.
legendary
Activity: 1218
Merit: 1000
January 22, 2016, 08:06:33 PM
#3
For the most Bitcoiners,they wouldn't know this! But what we normally do is to set the amount of fees / byte included in the transactions in our wallets. Most of the desk wallets are offering this features. So it will be easy for us no need to go through the complex formula.
sr. member
Activity: 266
Merit: 250
January 22, 2016, 10:26:08 AM
#2
As reported in the Bitcoin Wiki, every 1,000 bytes of data in a transaction adds 0.1 mBTC to the fee. Any size below an even thousand is rounded up to the nearest thousand. For example, the fee on a 675-byte transaction would be 0.1 mBTC. Likewise, the fee on a 1,345-byte transaction would be 0.2 mBTC.
To estimate a fee, we need a way to relate the number of transaction inputs (in) and outputs (out) to it's size in bytes (size). The exact size of a transaction can only be determined after it has been signed, which is unfortunately too late to be of much use in many wallet programs. However, the upper size limit can be
found with this equation:
Code:
size = 181 * in + 34 * out + 10

[]-> http://bitzuma.com/posts/making-sense-of-bitcoin-transaction-fees/


-> https://bitcointalksearch.org/topic/m.13649781
newbie
Activity: 8
Merit: 0
January 22, 2016, 09:07:25 AM
#1
Hello guys
I read about fees and it should be changed according to the transaction size
so I want to know how to calculate the transaction size.
Jump to: