StaticPointer.resolve - corda

corda / net.corda.core.contracts / StaticPointer / resolve

# resolve

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

Resolves a StaticPointer to a StateAndRef via a StateRef look-up.

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