loadState

abstract 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.

Throws

if stateRef points to a non-existent transaction.