Native currency fees for mining / validating transactions

+2 votes

Hi Multichain folks,

I have a few questions when it comes to native currency fees. when using api calls like sendassetfrom and issuefrom:

  1. does the wallet calculates the fee required according to the minimum-relay-fee, how is the fee calculated
  2. does the wallet then add the change output for the inputs - fee?
  3. the unclaimed native currency (input - change output) gets picked up by the mining/validating node address
Thanks.
asked Mar 24, 2018 by StevenChan

1 Answer

+1 vote
 
Best answer

Thanks, to answer your questions:

  1. Yes, the wallet calculated the fee automatically based on transaction size and the minimum-relay-fee.
  2. Yes, the wallet adds a change output – in fact even without fees a change output is always added, because the wallet needs a UTXO to spend for the next transaction.
  3. Yes, any unclaimed native currency gets collected by the block miner, just as in bitcoin.
answered Mar 25, 2018 by MultiChain
selected Mar 25, 2018 by StevenChan
...