fun resolve(services: ServiceHub): StateAndRef<T>
Resolves a LinearPointer using the UniqueIdentifier contained in the pointer property. Returns a StateAndRef containing the latest version of the LinearState that the node calling resolve is aware of.
services
- a ServiceHub implementation is required to perform a vault query.
fun resolve(ltx: LedgerTransaction): StateAndRef<T>
Resolves a StatePointer to a StateAndRef from inside a LedgerTransaction. The intuition here is that all of the pointed-to states will be included in the transaction as reference states.
ltx
- the LedgerTransaction containing the pointer and pointed-to states.