corda / net.corda.core.node / ServiceHub / toStateAndRef

toStateAndRef

open fun <T : ContractState> toStateAndRef(ref: StateRef): StateAndRef<T>

Will check logicType and args against a whitelist and if acceptable then construct and initiate the protocol.

Exceptions

IllegalProtocolLogicException - or IllegalArgumentException if there are problems with the logicType or args.