output

abstract fun output(contractClassName: ContractClassName, label: String?, notary: Party, encumbrance: Int?, attachmentConstraint: AttachmentConstraint, contractState: ContractState)

Adds an output to the transaction.

Parameters

label

An optional label that may be later used to retrieve the output probably in other transactions.

notary

The associated notary.

encumbrance

The position of the encumbrance state.

attachmentConstraint

The attachment constraint

contractState

The state itself.

contractClassName

The class name of the contract that verifies this state.