open fun <T : ContractState> toStateAndRef(ref: StateRef): StateAndRef<T>
Given a StateRef loads the referenced transaction and returns a StateAndRef
TransactionResolutionException - if the StateRef points to a non-existent transaction.
TransactionResolutionException