loadState

open override fun loadState(stateRef: StateRef): TransactionState<ContractState>

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.

Throws

TransactionResolutionException

if stateRef points to a non-existent transaction.