public ulong CalculateTxFee(string aToAddress, ulong aAmount, uint aCurrencyID) { CurrencyTransaction lCurrencyTransaction; ulong lBalance = FBalance[aCurrencyID].Total; if (lBalance < aAmount) { throw new ClientExceptions.InsufficientFundsException("The amount given is higher than the balance"); } if (aAmount == 0) { throw new ClientExceptions.InvalidOperationException("The amount to send can't be empty"); } lCurrencyTransaction = CreateNewCurrencyTransaction(aCurrencyID, aAmount, aToAddress); ulong lTxFee = FWalletPandoraServer.GetTransactionFee(aCurrencyID, lCurrencyTransaction); return(lTxFee); }