Bitcoin Forum
May 06, 2024, 08:01:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin RPC interface: sendfrom & tx fee  (Read 1993 times)
Artefact2 (OP)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile WWW
May 10, 2011, 01:18:38 PM
 #1

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.

A pool-biased blockchain representation, by me: pident (WTFPL)
1714982476
Hero Member
*
Offline Offline

Posts: 1714982476

View Profile Personal Message (Offline)

Ignore
1714982476
Reply with quote  #2

1714982476
Report to moderator
1714982476
Hero Member
*
Offline Offline

Posts: 1714982476

View Profile Personal Message (Offline)

Ignore
1714982476
Reply with quote  #2

1714982476
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
winnetou
Sr. Member
****
Offline Offline

Activity: 361
Merit: 250


View Profile
August 05, 2011, 02:21:05 AM
 #2

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
vv01f
Sr. Member
****
Offline Offline

Activity: 314
Merit: 250


View Profile
August 17, 2011, 09:26:29 PM
 #3

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!

donations to me please send via bitcoin 1vvo1FDwSAwNdLVA1mFkM7v76XPZAAUfb
a good European exchange: bitcoin.de (ref-link)
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
August 18, 2011, 05:25:58 AM
 #4

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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
August 18, 2011, 07:18:51 AM
 #5

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?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
August 18, 2011, 11:46:18 AM
 #6

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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
August 18, 2011, 04:39:42 PM
 #7

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.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
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!