Skip to main content

GrpcDynamicField

GrpcDynamicField​

struct GrpcDynamicField

A dynamic field of an object.

init(kind:parent:fieldId:fieldObject:nameBcs:valueBcs:valueType:childId:childObject:)​

init(kind: GrpcDynamicFieldKind?, parent: ObjectId?, fieldId: ObjectId?, fieldObject: Object?, nameBcs: Data?, valueBcs: Data?, valueType: String?, childId: ObjectId?, childObject: Object?)

childId​

var childId: ObjectId?

The id of the child object when a child is a dynamic object field.

childObject​

var childObject: Object?

The object itself when a child is a dynamic object field.

fieldId​

var fieldId: ObjectId?

The id of the dynamic field object.

fieldObject​

var fieldObject: Object?

The dynamic field object itself.

kind​

var kind: GrpcDynamicFieldKind?

The kind of the dynamic field.

nameBcs​

var nameBcs: Data?

The BCS representation of the dynamic field's name.

parent​

var parent: ObjectId?

The id of the dynamic field's parent object.

valueBcs​

var valueBcs: Data?

The BCS representation of the dynamic field's value.

For regular dynamic fields this contains the BCS-encoded value whose type is given by value_type. For dynamic object The basic unit of storage in IOTA is object. In contrast to many other blockchains, where storage is centered around address and each address contains a key-value store, IOTA's storage is centered around objects. IOTA objects have one of the following primary states:

- Immutable - the object cannot be modified.
- Mutable - the object can be changed.

Further, mutable objects are divided into these categories:

- Owned - the object can be modified only by its owner.
- Shared - the object can be modified by anyone.

Immutable objects do not need this distinction because they have no owner.
fields this contains the BCS-encoded id of the child object; use child_object to access the full object.

valueType​

var valueType: String?

The type of the dynamic field's value.