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

toStateAndRef

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

Given a StateRef loads the referenced transaction and returns a StateAndRef

Exceptions

TransactionResolutionException - if the StateRef points to a non-existent transaction.