Function FeeManager.check

Checks the given transaction has the required fees

string check (
  in ref const(Transaction) tx,
  Amount tx_fee
) nothrow @safe;

The transaction fees must be sufficient to pay the data payload fee and also the minimum fee for the size of the transaction. The size of the data payload is also checked to be less than maximum allowed.

Parameters

NameDescription
tx Transaction
tx_fee transaction fee

Return

null if the transaction is valid otherwise a string explaining the reason it is not.