Skip to main content
Version: Next

tx.txbuilder.addunspentoutputs

Home > @blaze-cardano/tx > TxBuilder > addUnspentOutputs

TxBuilder.addUnspentOutputs() method​

Adds unspent transaction outputs (UTxOs) to the set of UTxOs available for this transaction. These UTxOs can then be used for balancing the transaction, ensuring that inputs and outputs are equal.

Signature:

addUnspentOutputs(utxos: TransactionUnspentOutput[]): TxBuilder;

Parameters​

Parameter

Type

Description

utxos

TransactionUnspentOutput[]

The unspent transaction outputs to add.

Returns:

TxBuilder

{TxBuilder} The same transaction builder