Author

Topic: Troubles understanding sendfrom (bitcoind) (Read 2562 times)

legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
April 19, 2012, 05:40:00 AM
#12
No - the patch is really meant for people who want to control which addresses are associated for anonymity reasons.  It still sends change to new addresses.

oic - a pity no option for that as that would have made things extremely simple.

You can either sweep the change back to your named addresses, or you might want to look at Electrum.

yup - will have to mull over this - thanks again for the helpful info!
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
No - the patch is really meant for people who want to control which addresses are associated for anonymity reasons.  It still sends change to new addresses.

You can either sweep the change back to your named addresses, or you might want to look at Electrum.
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
Nope, it also extends the bitcoind RPC API:

https://bitcointalksearch.org/topic/--24784

Thanks (should have kept reading a bit more  Embarrassed ).

I guess the only other thing (which I'll just assume has probably also been covered by this fork) would be to make sure that the change goes back to (one of the) address(es) that were sent from also.

I hope this will get merged soon as I think it will be very useful for being able to create more public ledgers (only as an option of course).
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
Nope, it also extends the bitcoind RPC API:

https://bitcointalksearch.org/topic/--24784
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
Yes, the coderr fork (the one I linked) does it.  The patch will probably eventually get merged into the standard client.  Electrum can also do it.

Didn't read the entire thread but from what I gather it is a GUI only change (right?) - any proposal to do this with bitcoind (I would want to have this automated to fit into a project management application I am envisaging) Huh
legendary
Activity: 1372
Merit: 1007
1davout
Yes I had read that - but it provides no details about what a sendfrom actually does (about the same as using "bitcoind help sendfrom").
This is aimed mostly at shared wallets that are used by webapps and that maintain a balance right inside the client for every user (or non-user account).
The accounts are not permitted to go into negative, only the default account "" may have a negative balance.

Getting to pick which address actually sends the coin isn't available without patching the client.
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
Has anything further been considered in regards to this or is there an alternative client that already does this?

Yes, the coderr fork (the one I linked) does it.  The patch will probably eventually get merged into the standard client.  Electrum can also do it.
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer

Yes I had read that - but it provides no details about what a sendfrom actually does (about the same as using "bitcoind help sendfrom").
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
sendfrom sends from an account, not an address.  Accounts are just internal ledgers in your wallet.  They do not map to addresses.

Thanks - yes thought it was something basic - I got confused by those accounts again (I'll get it right eventually). Smiley

The standard Satoshi client cannot send from a specific address.  You need this:  https://bitcointalksearch.org/topic/--24784

Has anything further been considered in regards to this or is there an alternative client that already does this?

(the thinking is to have a publicly verifiable ledger via the blockchain that will show all "donations" and "payments" for an open source project)
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
sendfrom sends from an account, not an address.  Accounts are just internal ledgers in your wallet.  They do not map to addresses.

The standard Satoshi client cannot send from a specific address.  You need this:  https://bitcointalksearch.org/topic/--24784
legendary
Activity: 1890
Merit: 1072
Ian Knowles - CIYAM Lead Developer
I recently imported a vanity address for my company (1ciyam3htJit1feGa26p2wQ4aw6KFTejU) into the current 0.6 version and gave this address the account/label name "ciyam" and moved some BTC into the address (so far so good).

Next I used the bitcoind "sendfrom" to send a payment out as follows:

bitcoind -rpcpassword=***password*** sendfrom ciyam 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxY 0.25

but if I look at the vanity address in blockchain.info the 0.25 tx doesn't appear (the 4 tx's which you can see there now are an initial test one - a larger BTC input and then 2 tx's I did much later to adjust the balance according to what my own wallet was showing for the account).

If I do the following:
bitcoind -rpcpassword=***password*** listtransactions ciyam

then I see 6 tx's and a balance of exactly 100.

Am guessing that I've missed something fundamental here as I don't get why my "sendfrom" tx's don't show up when looking at the address under blockchain.info.

Can anyone please explain to me what I've misunderstood?
Jump to: