Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Eternity on September 24, 2013, 12:59:37 PM



Title: Sending coins
Post by: Eternity on September 24, 2013, 12:59:37 PM
How do i know the bitcoin address from which i will be sending btc to others

Is there any choice to do the same ?


Title: Re: Sending coins
Post by: tgerring on September 25, 2013, 03:48:22 AM
Due to Bitcoin-QT's coin selection algorithm, it's difficult to tell where the coins will come from in advance. If you need to control from which addresses the inputs are selected, you'll have to use `createrawtransaction`


Title: Re: Sending coins
Post by: Eternity on September 25, 2013, 12:05:27 PM
You mean to say whenever i am sending coins to an address does he receive the coins from an address i dont control ?


Title: Re: Sending coins
Post by: tgerring on September 25, 2013, 12:29:52 PM
It will be from an address you control, just not necessarily the address you expect. It could come from an unlabeled change address from a previous transaction.


Title: Re: Sending coins
Post by: Eternity on September 25, 2013, 12:31:53 PM
Any easy way to set one ?


Title: Re: Sending coins
Post by: tgerring on September 25, 2013, 12:33:59 PM
Any easy way to set one ?

The only way to specifically control the flow of coins is to use `createrawtransaction`. When you use`sendfrom`, bitcoind makes it own decisions about where the coins come from and where the change goes to. `listunspent` helps in this regard.


Title: Re: Sending coins
Post by: Eternity on September 25, 2013, 12:47:31 PM
How to integrate in ubuntu ?


Title: Re: Sending coins
Post by: CIYAM on September 25, 2013, 12:50:48 PM
You might also be interested in the "coin control" patch - it allows you to select which UTXOs to use via the GUI itself.

The raw tx's API is only recommended for expert users as it is very easy to screw up and end up losing large amounts of BTC.


Title: Re: Sending coins
Post by: Eternity on September 25, 2013, 01:05:27 PM
Not an expert in ubuntu

Can you tell me the steps i can follow them and do the changes required


Title: Re: Sending coins
Post by: tgerring on September 25, 2013, 02:01:48 PM
Not an expert in ubuntu

Can you tell me the steps i can follow them and do the changes required

The short answer is that this isn't easy to do with Bitcoin-QT right now. You can try a web wallet (such as blockchain.info) which lets you select the particular address you're sending from. I don't know how it handles change, however.

Edit: Here's a link to the Coin Control thread, where they appear to have some binaries available: https://bitcointalk.org/index.php?topic=144331.0


Title: Re: Sending coins
Post by: DannyHamilton on September 25, 2013, 07:20:51 PM
Any easy way to set one ?

Sure.

  • Create a new receiving address in your wallet.
  • Before sending or receiving any other transactions, send the ENTIRE BALANCE of your wallet to this new receiving address
  • Send the bitcoins you wish to send to the address you wish

The transaction will "come from" the new receiving address that you created in step 1.