how to earn a transaction fee for transactions originating from my client

0

I am working on an online litecoin wallet system. For every transaction originated from our site, we need to charge say x% of the amount as fees and it'll be sent to Admin's address ? How can I do that ?

I guess paytxfee is what we are willing to pay others for a particular transaction, right ?

I didn't found any parameter to set the address to which the transaction fees should go ?

Looking for some help...

coding_idiot

Posted 2014-03-07T01:00:36.040

Reputation: 153

Not sure if I understand correctly. You want to charge a fee, such as LTC .005 for a transaction that you originate, and then also (or in addition) collect the standard Litecoin transaction fee to pass along to the network?ChrisW 2014-03-07T01:46:13.253

how is the standard litecoin transaction fee collected and which address does it go to ?coding_idiot 2014-03-07T09:36:28.783

It goes to the miner who incorporates that transaction into a block. This is not the sort of fee mechanism you're looking for. Just charge a bit extra.Pieter Wuille 2014-03-07T09:51:26.483

@PieterWuille thanks, please put it as an answer so that I can accept.coding_idiot 2014-03-07T23:58:32.783

Answers

2

By definition, "transaction fee" is the difference between sum of inputs and sum of outputs. It always goes to the miner.

What you need is to add an output payable to your account.

uminatsu

Posted 2014-03-07T01:00:36.040

Reputation: 1 061

You mean to say make another transaction in the back-end for the fees from user-address to admin-address ?coding_idiot 2014-03-07T09:37:20.610