tx Completer
Modifies a transaction based on the passed allowed operations to move it closer to a fully balanced, fully signed state. 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.
Parameters
Only fund with coins that have at least this many confirmations
If non-null, assume existing inputs supply this number of satoshis (do not look up these inputs)
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
Pass an output index if the fee should be deducted from this output. Otherwise the fee must be taken from extra input
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.
: if non-null all signatures will use this as their sighashtype field
: Send any change, either tokens or native, here. If null, a new address is created from the wallet
Use this contract id if non-null. Otherwise (default is null) select inputs with no associated contract. Change will be also sent to this contract (if changeAddress is unspecified)