corda / net.corda.core.contracts / StateAndRef

StateAndRef

data class StateAndRef<out T : ContractState>

A StateAndRef is simply a (state, ref) pair. For instance, a vault (which holds available assets) contains these.

Constructors

<init>

A StateAndRef is simply a (state, ref) pair. For instance, a vault (which holds available assets) contains these.

StateAndRef(state: TransactionState<T>, ref: StateRef)

Properties

ref

val ref: StateRef

state

val state: TransactionState<T>

Functions

referenced

For adding StateAndRefs as references to a TransactionBuilder.

fun referenced(): ReferencedStateAndRef<T>