Fields

NOTE: In Radix Babylon Network, use of more than one Field, Field Conditions and Field Transience are currently only available for use by native packages.

A field is object state which gets loaded at once and maps to a single substate. A schema which describes what is in the data must be specified for every field.

Fields are identified by field index.

Field Condition

Fields may be conditionally included in an object depending on the features instantiated with that object. There are currently three options for field conditions:

NameDescription
AlwaysAlways include the field
IfFeatureOnly include the field if a given feature is specified
IfOuterFeatureOnly include the field if a given feature in the associated outer object is specified

Field Transience

Fields may be specified to be transient. In this case, the field is never persisted. Instead, a default value is initially loaded on first read and may be updated over the course of a transaction. At the end of a transaction the field's value gets discarded.