corda / net.corda.core.contracts / StatePointer / staticPointer

staticPointer

fun <reified T : ContractState> staticPointer(stateAndRef: StateAndRef<T>, isResolved: Boolean = false): StaticPointer<T>

Creates a StaticPointer to the specified contract state.

Parameters

stateAndRef - The StateAndRef instance from which to construct a static pointer.

isResolved - Determines whether the state pointer should be resolved to a reference input when included in a transaction.

Return
Returns a StaticPointer to the specified contract state.