Skip to main content

IObjectData

Namespace: IotaSdk

Object data, either a package or struct

BCS

The BCS serialized form for this type is defined by the following ABNF:

object-data = object-data-struct / object-data-package

object-data-struct = %d00 object-move-struct
object-data-package = %d01 object-move-package
public interface IObjectData : System.IEquatable`1[[IotaSdk.ObjectData, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IEquatable<ObjectData>
Attributes NullableContextAttribute

Methods

AsOptPackage()

Try to interpret this object as a MovePackage

MovePackage? AsOptPackage()

Returns

MovePackage?

AsOptStruct()

Try to interpret this object as a MoveStruct

MoveStruct? AsOptStruct()

Returns

MoveStruct?

IsPackage()

Return whether this object is a MovePackage

bool IsPackage()

Returns

Boolean

IsStruct()

Return whether this object is a MoveStruct

bool IsStruct()

Returns

Boolean