TransactionDSL.reference - corda

corda / net.corda.testing.dsl / TransactionDSL / reference

# reference

`fun reference(stateLabel: String): Unit`

Looks up the output label and adds the found state as an reference input state.

### Parameters

`stateLabel` - The label of the output state specified when calling TransactionDSLInterpreter.output and friends.

`fun reference(contractClassName: ContractClassName, state: ContractState): Unit`

Creates an LedgerDSLInterpreter._unverifiedTransaction with a single reference input state and adds its reference as in input to the current transaction.

### Parameters

`state` - The state to be added.