3
I want my customers to pay transaction fees. The only helpful but incomplete answer I have found so far is from here:
You can create a transaction which spends the output to yourself, attaching a fee to that transaction. In order for miners to grab the transaction fee on that transaction, they would have to also mine the original transaction.
I have some experience of calling bitcoind methods using JSON. With these assumptions:
my account: "my"
receiver's address: "123..zyz"
coins to be sent: 0.001
transaction fee: (unpredictable)
my customer will receive 0.0008 coins if the transaction fee is 0.0002 in this case.
Am I supposed to first call method sendfrom like below?
sendfrom("my","123..zyz",0.001)
Then how do I determine the transaction fee? How do I charge the transaction fee to the receiver? Would kind soul please provide me the detail answer with complete list of calls to Original Bitcoin client/API calls?
In a standard Bitcoin transaction your customer DO pay the transaction fee. Also you do not need to send a transaction fee - it can be free. What is the issue here? – T9b – 2014-06-08T10:13:26.143
I have been in the impression that it is senders rather than receivers who pay transaction fees. I have difficulty in acquiring the more or less official documentation depicting the opposite. – Nakamichi – 2014-06-08T15:15:18.313
Nakamichi, you are correct that the sender does pay the fee. I think your question is a bit confusing though, I get the impression that you are sending your customers coins. Is this correct? If so why can't you just deduct the transaction costs from the coins you're sending them, and send your customer a note explaining why the amount sent is lower than expected? You can determine the fee by: https://en.bitcoin.it/wiki/Transaction_fees
– Matt – 2014-06-09T00:13:49.593@matt Yes, I am sending my customers coins. My question is confusing as English is not my native language. The official transaction fee deduction rule is too complicated for me. I opt for using accounts to automate the coins withdrawal limitations at the cost of inconvenience on customers for this moment. – Nakamichi – 2014-06-09T00:56:53.103