resolve

abstract fun resolve(services: ServiceHub): StateAndRef<T>

Resolves a StatePointer to a StateAndRef via a vault query. This method will either return a StateAndRef or return an exception.

Parameters

services

a ServiceHub implementation is required to resolve the pointer.


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

Parameters

ltx

the LedgerTransaction containing the pointer and pointed-to states.