addInput
readonly addInput!: (
utxo: CanResolveToUTxO,
redeemer?: CanBeData,
script_or_ref?: CanResolveToUTxO | Script,
datum?: CanBeData | "inline"
) => TxBuilderRunner
utxutxoos:CanResolveToUTxOredeemer:CanBeData|undefinedscript_or_ref:CanResolveToUTxO|Script|undefineddatum:CanBeData|"inline"|undefined
adds the given utxo to the transaction inputs;
ifutxo doesn't satisfy the IUTxO interface
it will be resolved using the provider resolveUtxos method.
redeemer and script_or_ref must be specified together; if datum is missing defaults to "inline".
if script_or_ref is a Script
it will be included in the witnesses
field of the resulting Tx;
if script_or_ref satisfies the IUTxO interface
it will be used as reference input to provide the attached reference script (build fails if missing)
if script_or_ref satisfies the ITxOutRef interface
or the TxOutRefStr type alias
it will be resolved using the provider resolveUtxos method and
it will be used as reference input to provide the attached reference script (build fails if missing)
returns a reference to the same TxBuilderRunner.