net.corda.core.transactions / TransactionBuilder / addOutputState

addOutputState

fun addOutputState(state: TransactionState<*>): Int
fun addOutputState(state: ContractState, notary: Party): Int


fun addOutputState(state: ContractState): Int

A default notary must be specified during builder construction to use this method