Bitcoin Forum
June 04, 2024, 08:24:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info custom transaction  (Read 941 times)
micaman (OP)
Sr. Member
****
Offline Offline

Activity: 345
Merit: 500



View Profile WWW
January 30, 2015, 11:35:23 AM
 #1

Is there a way to choose which unspent outputs are included in a transaction?
Not sure, but it looks like it always includes all unspent outputs, even when not necessary. I guess it's trying to avoid address reuse?
Thanks
bloodDiamond
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 30, 2015, 11:54:04 AM
 #2

Is there a way to choose which unspent outputs are included in a transaction?
Not sure, but it looks like it always includes all unspent outputs, even when not necessary. I guess it's trying to avoid address reuse?
Thanks

not sure..
but i think this is an automated process..
and so
you can not configure it..

Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2898
Merit: 2337


View Profile
January 30, 2015, 02:19:19 PM
 #3

Unspent outputs, no. However you can structure transactions such that you spend all inputs in a specific address to avoid address reusing.

My understanding is that they will structure the transaction so that the tx fee will be smallest for the subject transaction (at least from what I can tell).
micaman (OP)
Sr. Member
****
Offline Offline

Activity: 345
Merit: 500



View Profile WWW
January 30, 2015, 02:39:29 PM
 #4

However you can structure transactions such that you spend all inputs in a specific address to avoid address reusing.
I think this is what they do by default.
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2898
Merit: 2337


View Profile
January 30, 2015, 02:45:24 PM
 #5

However you can structure transactions such that you spend all inputs in a specific address to avoid address reusing.
I think this is what they do by default.
I am fairly certain that they will only use the necessary inputs. Although they may use the smallest inputs and then move to larger inputs as necessary which may make it look like they are using all inputs depending on the inputs in your address.

Both using all inputs and using the smallest inputs first will most likely result in you having to pay less in tx fees over the long run.

If you give me a few hours I will take a look and test my theory.
micaman (OP)
Sr. Member
****
Offline Offline

Activity: 345
Merit: 500



View Profile WWW
January 30, 2015, 02:54:35 PM
 #6

However you can structure transactions such that you spend all inputs in a specific address to avoid address reusing.
I think this is what they do by default.
I am fairly certain that they will only use the necessary inputs. Although they may use the smallest inputs and then move to larger inputs as necessary which may make it look like they are using all inputs depending on the inputs in your address.

Both using all inputs and using the smallest inputs first will most likely result in you having to pay less in tx fees over the long run.

If you give me a few hours I will take a look and test my theory.
Thanks, that would be great.
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2898
Merit: 2337


View Profile
January 30, 2015, 06:17:57 PM
 #7

Okay so I did a little bit of experimenting. 184QFyikUtYLzsGc7Hhn5xAV1rTJmpy6JZ is an address of mine that has four inputs, one for .45, one for .36, one for .015 and one for .01 BTC.

When I tried to send amounts under .45, it always proposed that it spend the .45 input except when the amount of the transaction was the exact amount of the transaction. When I attempted to spend the exact amount of the transaction, it would use the input that exactly matched the size. The same is true when I tried spending amounts greater then .45 but less then .81 BTC, when I attempt to send an amount of .45 plus the size of another input (except the .015 input) it would use those two inputs, otherwise it would use the .45 and the .36 input. I am not sure why it did not want to spend the .015 input unless it had to.

This leads me to believe that it will attempt to structure transaction in a way so that it will need to spend as little as possible on a TX fee (e.g. it wants to make the transaction size as small as possible).

It is note worthy that all the inputs are roughly the same age (within a week of each other) and I am not sure how it would react if the inputs were of significantly different ages (old inputs are generally more eligible to send free transactions as per most rules that most miners follow). One downside to this however may result in in you eventually having very small inputs if you do not spend exact amounts that you receive (IMO it is not the expected behavior for people to spend exact amounts they receive) which will potentially lead to very high TX fees for blockchain.info users if the use the same wallet long enough.
micaman (OP)
Sr. Member
****
Offline Offline

Activity: 345
Merit: 500



View Profile WWW
January 30, 2015, 07:09:25 PM
 #8

So i guess it's normal... Thanks a lot for your feedback!
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!