fun <T : ContractState> outRef(index: Int): StateAndRef<T>
Returns a StateAndRef for the given output index.
fun <T : ContractState> outRef(state: ContractState): StateAndRef<T>
Returns a StateAndRef for the requested output state, or throws IllegalArgumentException if not found.