Bitcoin Forum
June 29, 2024, 12:10:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Troubles understanding sendfrom (bitcoind)  (Read 2564 times)
CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 19, 2012, 07:10:15 AM
 #1

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?

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
April 19, 2012, 07:21:53 AM
 #2

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://bitcointalk.org/index.php?topic=24784

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 19, 2012, 07:29:39 AM
 #3

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://bitcointalk.org/index.php?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)

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
ingrownpocket
Legendary
*
Offline Offline

Activity: 952
Merit: 1000


View Profile
April 19, 2012, 07:32:20 AM
 #4

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list
CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 19, 2012, 07:38:13 AM
 #5


Yes I had read that - but it provides no details about what a sendfrom actually does (about the same as using "bitcoind help sendfrom").

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
April 19, 2012, 08:13:51 AM
 #6

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.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1007


1davout


View Profile WWW
April 19, 2012, 08:15:25 AM
 #7

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.

CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 19, 2012, 08:19:00 AM
 #8

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

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
April 19, 2012, 08:45:07 AM
 #9

Nope, it also extends the bitcoind RPC API:

https://bitcointalk.org/index.php?topic=24784.msg446276#msg446276

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 19, 2012, 09:09:46 AM
 #10


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).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
April 19, 2012, 09:14:15 AM
 #11

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.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 19, 2012, 09: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!

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
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!