load State
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
Transaction Resolution Exception
if stateRef points to a non-existent transaction.