public static IBitcoinBasedTransaction CreateSegwitPaymentTx( BitcoinBasedConfig currency, IEnumerable <ITxOutput> outputs, PubKey from, PubKey to, int amount, int fee) { return(currency.CreateP2WPkhTx( unspentOutputs: outputs, destinationAddress: to.GetSegwitAddress(currency.Network).ToString(), changeAddress: from.GetSegwitAddress(currency.Network).ToString(), amount: amount, fee: fee)); }