corda / net.corda.testing.node / MockServices / loadState

loadState

open fun loadState(stateRef: StateRef): TransactionState<*>

Given a StateRef loads the referenced transaction and looks up the specified output ContractState.

WARNING Do not use this method unless you really only want a single state - any batch loading should go through loadStates as repeatedly calling loadState can lead to repeat deserialsiation work and severe performance degradation.

Exceptions

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