Skip to main content
Version: 0.13.0

tx.txbuilder.addoutput

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

TxBuilder.addOutput() method

Adds a transaction output to the current transaction body. This method also ensures that the minimum ada requirements are met for the output. After adding the output, it updates the transaction body's outputs. It also checks if the output value exceeds the maximum value size.

Signature:

addOutput(output: TransactionOutput): TxBuilder;

Parameters

Parameter

Type

Description

output

TransactionOutput

The transaction output to be added.

Returns:

TxBuilder

{TxBuilder} The same transaction builder