txCompleter

open override fun txCompleter(tx: iTransaction, minConfirms: Int, flags: Int, inputAmount: Long?, adjustableOutput: Int?, destinationAddress: PayAddress?)

This function finds inputs needed to supply funds (token or native) for this transaction, generates change outputs, completes partially-defined output scripts, and signs inputs. All of these functions are enabled/disabled by the "flags" parameter. @paramminConfirms Only fund with coins that have at least this many confirmations @paraminputAmount If non-null, assume existing inputs supply this number of satoshis (do not look up these inputs) @paramflags See TxCompletionFlags If change outputs are required, add them. If mint baton passing outputs are possible then add them if equalizeAuthorities=true If useAuthorities = true, pull in authorities if needed (and available) to handle (mint/melt) operations If fund = true, add native crypto inputs to pay for the transaction @paramadjustableOutput Pass an output index if the fee should be deducted from this output. Otherwise the fee must be taken from extra input @paramdestinationAddress Use this address whenever the completer needs to inject an address into a script or create an additional output. This is typically used for wallets in single-address mode. @throwsWalletException,WalletNotEnoughBalanceException