Exemple #1
0
        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));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }