tx Completer
Modify the passed transaction to complete it to the extent possible by this wallet, including: Find inputs needed to supply satoshis and/or group tokens for this transaction. If change outputs are required, add them. If mint baton passing outputs are possible then add them if equalizeAuthorities=true If outputs are not fully specified, supply the missing constraints. The order of inputs and outputs is NOT changed.
Parameters
: The transaction to complete
: if inputAmount is non-null, assume existing inputs supply this number of satoshis (do not look up these inputs)
: bit map of TxCompletionFlags that must be set
: 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
: Based on the flags, this output may be adjusted for fee or surplus (coming out of tokens). Pass a null if any adjustment should error.
: If null, any missing output templates will substitute a new address from the wallet. If non-null output substitutions will use this address.
: if non-null all signatures will use this as their sighashtype field