Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Artefact2 on May 10, 2011, 01:18:38 PM



Title: Bitcoin RPC interface: sendfrom & tx fee
Post by: Artefact2 on May 10, 2011, 01:18:38 PM
Is it possible to explicitly set the transaction fee when transferring bitcoins with the "sendfrom" command ?

Also, is it possible to force the client to take the transaction fee only from the <from> account, and not from any other account ? The default behavior is very annoying in an application where every user has an account on the same wallet, and can transfer coins from/to it.


Title: Re: Bitcoin RPC interface: sendfrom & tx fee
Post by: winnetou on August 05, 2011, 02:21:05 AM
Also, is it possible to force the client to take the transaction fee only from the <from> account, and not from any other account ? The default behavior is very annoying in an application where every user has an account on the same wallet, and can transfer coins from/to it.

+1


Title: Re: Bitcoin RPC interface: sendfrom & tx fee
Post by: vv01f on August 17, 2011, 09:26:29 PM
1. No, not in a single command. You'd need two commands.
2. Fees are taken from the sender as far as I understand?! Account is wallet in my mind, an account may have many many addresses, but thats checkable. Also other accounts may be listet with an address in your addressbook, but not your own account.

To set you transaction fee (even to zero) you need to start the client as server/daemon. read on that and list the help of that daemon to go on.
The same way you'll find how to check if an address is belonging to your account and e.g. list the addressbook.


have fun!


Title: Re: Bitcoin RPC interface: sendfrom & tx fee
Post by: kjj on August 18, 2011, 05:25:58 AM
In my opinion, the whole account system needs to be removed from the code.  You really should stop using it.

Just track who you give addresses to, and who initiates sends.


Title: Re: Bitcoin RPC interface: sendfrom & tx fee
Post by: d'aniel on August 18, 2011, 07:18:51 AM
In my opinion, the whole account system needs to be removed from the code.  You really should stop using it.
If the client could better handle multiple wallets, would this achieve exactly the same purpose as accounts?


Title: Re: Bitcoin RPC interface: sendfrom & tx fee
Post by: kjj on August 18, 2011, 11:46:18 AM
In my opinion, the whole account system needs to be removed from the code.  You really should stop using it.
If the client could better handle multiple wallets, would this achieve exactly the same purpose as accounts?

No, you don't need multiple wallets, or multiple accounts, or anything fancy.  You just need to take notes whenever you give out an address, and whenever you spend.


Title: Re: Bitcoin RPC interface: sendfrom & tx fee
Post by: 2112 on August 18, 2011, 04:39:42 PM
In my opinion, the whole account system needs to be removed from the code.  You really should stop using it.
This is very wise opinion. From the accounting/auditing point of view the present wallet model is badly broken. Transactions should be stored in a sequential csv file that is instantly usable by any of the accounting packages for businesses or consumers.

Since the wallet.dat database is essentially append-only this would be relatively simple modification to the existing code. Berkeley DB already supports flat-text database files, but the database model need to be changed from Btree to RecNo.