Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Minimum Realy Fees: Transaction too large for fee policy
Data Streams with Native Currency as fee?
"Transaction fee too large for fee policy" while uploading data to stream
native currency
What happens to transaction fee in Native blockchain currency?
4,156
questions
4,369
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
How to calculate minimum transaction fee for native currency
+2
votes
Hi all,
What formula does the wallet use to calculate the transaction fee if native currency is enabled?
related to an answer for:
Native currency fees for mining / validating transactions
native-currency
transactions
fee
asked
Mar 26, 2018
by
StevenChan
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
+1
vote
Best answer
It's calculated as follows (using names of blockchain parameters):
[size of the transaction in bytes] * minimum-relay-fee / 1000 / native-currency-multiple
answered
Mar 27, 2018
by
MultiChain
selected
Mar 27, 2018
by
StevenChan
just a quick followup, is the size of the fee input and change fee output (if any) part of the size of the transaction?
If it is, how do we take into account the extra bytes it adds onto the transaction when calculating the fees?
There is no specific fee input, but the fees does indeed need to be covered by inputs. So if the need to pay the fee leads to the inclusion of an additional input, we do the calculation again, and again..., until paying the fee no longer requires an additional input. But it's a rare case.
There is no output to represent the fee, so there's no issue there. The fee is just the difference between the input totals and output totals for the native currency.
Please
log in
or
register
to add a comment.
...