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

toStateAndRef

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

Converts the given StateRef into a StateAndRef object.

Exceptions

TransactionResolutionException - if stateRef points to a non-existent transaction.