interface ContractStateA contract state (or just "state") contains opaque data used by a contract program. It can be thought of as a disk file that the program can use to persist data across transactions. States are immutable: once created they are never updated, instead, any changes must generate a new successor state.
| contract |
abstract val contract: ContractContract by which the state belongs |
| notary |
abstract val notary: PartyIdentity of the notary that ensures this state is not used as an input to a transaction more than once |
| hash |
fun ContractState.hash(): SecureHashReturns the SHA-256 hash of the serialised contents of this state (not cached) |
| label |
infix fun ContractState.label(label: String): LabeledOutput |
| LinearState |
interface LinearState : ContractStateA state that evolves by superseding itself, all of which share the common "thread" |
| OwnableState |
interface OwnableState : ContractStateA contract state that can have a single owner. |
| State |
data class State : ContractState |
| State |
class State : ContractState |