public Money EstimateOfflineWithdrawalFee(IWalletTransactionHandler walletTransactionHandler, string receivingAddress, string walletName, string accountName, Money amount, bool subtractFeeFromAmount) { TransactionBuildContext context = this.GetOfflineWithdrawalBuildContext(receivingAddress, walletName, accountName, amount, null, subtractFeeFromAmount); context.TransactionBuilder.Extensions.Add(new ColdStakingBuilderExtension(false)); return(walletTransactionHandler.EstimateFee(context)); }
internal Money EstimateWithdrawalTransactionFee(IWalletTransactionHandler walletTransactionHandler, string receivingAddress, string walletName, Money amount, bool subtractFeeFromAmount) { (TransactionBuildContext context, _, _) = this.GetWithdrawalTransactionBuildContext(receivingAddress, walletName, amount, null, subtractFeeFromAmount); Money estimatedFee = walletTransactionHandler.EstimateFee(context); return(estimatedFee); }
internal Money EstimateSetupTransactionFee(IWalletTransactionHandler walletTransactionHandler, string coldWalletAddress, string hotWalletAddress, string walletName, string walletAccount, string walletPassword, Money amount, bool subtractFeeFromAmount, bool offline, bool useSegwitChangeAddress, int splitCount) { TransactionBuildContext context = this.GetSetupTransactionBuildContext(walletTransactionHandler, coldWalletAddress, hotWalletAddress, walletName, walletAccount, walletPassword, amount, null, subtractFeeFromAmount, offline, useSegwitChangeAddress, splitCount); Money estimatedFee = walletTransactionHandler.EstimateFee(context); return(estimatedFee); }