Author

Topic: Raw Transaction Tax (Read 883 times)

legendary
Activity: 3472
Merit: 4801
April 02, 2013, 09:55:58 AM
#5
how do you get the proper kb for a transaction before you even create it?

As CIYAM has pointed out, you don't.  First you create the transaction, then you calculate the fee.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
April 02, 2013, 07:39:41 AM
#4
Okay - refer to this: https://en.bitcoin.it/wiki/Transaction_fees

Just create it the raw tx (with no fee) but don't send it and check its size (and the age of UTXOs if necessary) - remember that paying the fee is simply reducing one of the outputs (generally the change one) by the appropriate amount.
hero member
Activity: 740
Merit: 501
April 02, 2013, 07:25:10 AM
#3
Tax?

Are you trying to work out a tx *fee* amount?


Yes haha the bitcoin network "tax" for processing your payment. The tx fee, I know it is charged by kb apparently but how do you get the proper kb for a transaction before you even create it?
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
April 02, 2013, 07:17:29 AM
#2
Tax?

Are you trying to work out a tx *fee* amount?
hero member
Activity: 740
Merit: 501
April 02, 2013, 07:12:00 AM
#1
How do you calculate it? I have searched google and on this forum and haven't found a single answer.

Are there any low level functions I'm missing?
Jump to: