Skip to main content

GrpcDynamicField

Namespace: IotaSdk

A dynamic field of an object.

public record class GrpcDynamicField : System.IDisposable, System.IEquatable`1[[IotaSdk.GrpcDynamicField, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → GrpcDynamicField
Implements IDisposable, IEquatable<GrpcDynamicField>
Attributes NullableContextAttribute, NullableAttribute

Properties​

Kind​

The kind of the dynamic field.

public GrpcDynamicFieldKind? Kind { get; init; }

Property Value​

GrpcDynamicFieldKind?

Parent​

The id of the dynamic field's parent object.

public ObjectId? Parent { get; init; }

Property Value​

ObjectId

FieldId​

The id of the dynamic field object.

public ObjectId? FieldId { get; init; }

Property Value​

ObjectId

FieldObject​

The dynamic field object itself.

public Object? FieldObject { get; init; }

Property Value​

Object

NameBcs​

The BCS representation of the dynamic field's name.

public Byte[]? NameBcs { get; init; }

Property Value​

Byte[]

ValueBcs​

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.

public Byte[]? ValueBcs { get; init; }

Property Value​

Byte[]

ValueType​

The type of the dynamic field's value.

public string? ValueType { get; init; }

Property Value​

String

ChildId​

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

public ObjectId? ChildId { get; init; }

Property Value​

ObjectId

ChildObject​

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

public Object? ChildObject { get; init; }

Property Value​

Object

Constructors​

GrpcDynamicField(GrpcDynamicFieldKind?, ObjectId, ObjectId, Object, Byte[], Byte[], String, ObjectId, Object)​

A dynamic field of an object.

public GrpcDynamicField(GrpcDynamicFieldKind? Kind, ObjectId? Parent, ObjectId? FieldId, Object? FieldObject, Byte[]? NameBcs, Byte[]? ValueBcs, string? ValueType, ObjectId? ChildId, Object? ChildObject)

Parameters​

Kind GrpcDynamicFieldKind?
The kind of the dynamic field.

Parent ObjectId?
The id of the dynamic field's parent object.

FieldId ObjectId?
The id of the dynamic field object.

FieldObject Object?
The dynamic field object itself.

NameBcs Byte[]?
The BCS representation of the dynamic field's name.

ValueBcs Byte[]?
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 String?
The type of the dynamic field's value.

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

ChildObject Object?
The object itself when a child is a dynamic object field.

Methods​

Dispose()​

public void Dispose()