toStateAndRef

Converts the given StateRef into a StateAndRef object.

Throws

if stateRef points to a non-existent transaction.