TestTransactionDSLInterpreter.output - corda

corda / net.corda.testing.dsl / TestTransactionDSLInterpreter / output

# output

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

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.