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

  • 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 Mar 7 '14 at 1:46
  • how is the standard litecoin transaction fee collected and which address does it go to ? – coding_idiot Mar 7 '14 at 9:36
  • 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 Mar 7 '14 at 9:51
  • @PieterWuille thanks, please put it as an answer so that I can accept. – coding_idiot Mar 7 '14 at 23:58
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.

  • You mean to say make another transaction in the back-end for the fees from user-address to admin-address ? – coding_idiot Mar 7 '14 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.