Function getFee
Returns the transaction fees (not including data fees) of a transaction
Amount getFee
(
in ref const(Transaction) tx,
scope nothrow @safe bool delegate(in ref geod24 .bitblob .BitBlob!(64L), out UTXO) peekUTXO,
scope nothrow @safe Amount delegate(geod24 .bitblob .BitBlob!(64L)) getPenaltyDeposit
) @safe;
Transactions have two kinds of fee: regular fees are the difference between
the inputs and the outputs. On the other hand, "data" fees are used to pay
for payload
, and are explicit (to the commons budget).
This function returns the transaction fee of tx
. If tx
is not a valid
transaction, this function will throw.
Parameters
Name | Description |
---|---|
tx | The transaction to get the fee of |
peekUTXO | A delegate to look up UTXOs (can have replay protection or not) |