TransactionDSL.input - corda

corda / net.corda.testing.dsl / TransactionDSL / input

# input

`fun input(stateLabel: String): Unit`

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

### Parameters

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

`fun input(contractClassName: ContractClassName, stateLabel: String): Unit` `fun input(contractClassName: ContractClassName, state: ContractState): Unit`

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

### Parameters

`state` - The state to be added.