Builds the transaction and adds the appropriate fee by subtracting from
the change output. Note that by default the TxBuilder will use as many
inputs as necessary to pay the output amounts and the required fee. The
TxBuilder will not necessarily us all the inputs. To force the TxBuilder
to use all the inputs (such as if you wish to spend the entire balance
of a wallet), set the argument useAllInputs = true.
Import a transaction partially signed by someone else. The only thing you
can do after this is sign one or more inputs. Usually used for multisig
transactions. uTxOutMap is optional. It is not necessary so long as you
pass in the txOut when you sign. You need to know the output when signing
an input, including the script in the output, which is why this is
necessary when signing an input.
Sometimes one of your outputs or the change output will be less than
dust. Values less than dust cannot be broadcast. If you are OK with
sending dust amounts to fees, then set this value to true. We
preferentially send all dust to the change if possible. However, that
might not be possible if the change itself is less than dust, in which
case all dust goes to fees.
Sometimes one of your outputs or the change output will be less than
dust. Values less than dust cannot be broadcast. If you are OK with
sending dust amounts to fees, then set this value to true.
Sign ith input with keyPair and insert the signature into the transaction.
This method only works for some standard transaction types. For
non-standard transaction types, use getSig.