Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: TAiS46 on May 09, 2012, 03:10:25 PM



Title: sendfrom (account) what address will be used?
Post by: TAiS46 on May 09, 2012, 03:10:25 PM
Hey,

if I have an account named "test" and send to someone btc:
sendfrom test address 2

What from address will be used?
What is, if the receiver send btc back to the from address?
Will the account get the btc or the "" account?

Thank you
Simon


Title: Re: sendfrom (account) what address will be used?
Post by: CIYAM on May 09, 2012, 03:31:41 PM
Hi Simon,

You may be having some of the same problems that I have had understanding what the Bitcoin client's "accounts" are.

You might have thought that if you assigned an "account" to an address that the "sendfrom" (when using the same account name) would use that address but that is not actually how it works at all.

It will actually pick an address from your receive address pool (more likely than not to *not* actually be the one that you had "set" an account to) and then it will "label" the tx as belonging to the account (so the listtransactions will show it when you specify the account name).

A patch by the member "coderrr", however, will allow you to specify which "from" addresses to actually use for sending which may accomplish what you are perhaps wanting (hopefully it will be appearing in a release later this year).

Also understand that the "accounts" are only known to your own wallet and so have nothing to do with another user's wallet.

Hope that helps!


Cheers,

Ian.


Title: Re: sendfrom (account) what address will be used?
Post by: TAiS46 on May 09, 2012, 03:44:16 PM
Hi Ian,

thank you for your answer.
There are many changes to do, that die bitcoind will send with "from" address using
the changed from coderrr.

I will wait and hope, that the next release will include an "from" address :)


Title: Re: sendfrom (account) what address will be used?
Post by: Pieter Wuille on May 09, 2012, 04:04:09 PM
May I ask what you need this for (don't get me wrong, there are various good reasons for it, I'd just like to know the use case).

Accounts are only intended as a virtual balance, the ability to keep a separate balance for different users. It has nothing to do with actually separating the wallet coins.


Title: Re: sendfrom (account) what address will be used?
Post by: TAiS46 on May 09, 2012, 04:06:29 PM
There are a lot btc games in the internet.
They say, if I will win, they will pay me my win to my btc address I pay from.

I was wondering about that and make a test.

I have a little bitcoin market and have think about it, what is, if a user
will withdraw btc to some game site and will win.
Will his "account" get the win or the ""

Sorry for bad english!


Title: Re: sendfrom (account) what address will be used?
Post by: Stephen Gornick on May 09, 2012, 07:22:26 PM
They say, if I will win, they will pay me my win to my btc address I pay from.

SatoshiDICE uses customized Bitcoin client software to do their payouts.

My Wallet, a hybrid Ewallet accessible from Blockchain.info lets you do coin selection:
 - http://Blockchain.info/wallet