changePolicy

abstract fun changePolicy(changePolicy: ChangeSpendPolicy): TxBuilder(source)

Set a specific ChangeSpendPolicy. See TxBuilder::do_not_spend_change and TxBuilder::only_spend_change for some shortcuts. This method assumes the presence of an internal keychain, otherwise it has no effect.