Skip to main content

Object

Namespace: IotaSdk

An object on the IOTA blockchain

BCS

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

object = object-data owner digest u64
public class Object : IObject, System.IEquatable`1[[IotaSdk.Object, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance ObjectObject
Implements IObject, IEquatable<Object>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

Object(UInt64)

public Object(ulong pointer)

Parameters

pointer UInt64

Object(ObjectData, Owner, TransactionDigest, UInt64)

public Object(ObjectData data, Owner owner, TransactionDigest previousTransaction, ulong storageRebate)

Parameters

data ObjectData

owner Owner

previousTransaction TransactionDigest

storageRebate UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

AsPackage()

Interpret this object as a move package

public MovePackage AsPackage()

Returns

MovePackage

AsPackageOpt()

Try to interpret this object as a move package

public MovePackage? AsPackageOpt()

Returns

MovePackage?

AsStruct()

Interpret this object as a move struct

public MoveStruct AsStruct()

Returns

MoveStruct

AsStructOpt()

Try to interpret this object as a move struct

public MoveStruct? AsStructOpt()

Returns

MoveStruct?

Data()

Return this object's data

public ObjectData Data()

Returns

ObjectData

Digest()

Calculate the digest of this Object

This is done by hashing the BCS bytes of this Object prefixed

public ObjectDigest Digest()

Returns

ObjectDigest

Id()

Return this object's id

public ObjectId Id()

Returns

ObjectId

ObjectRef()

Return this object's reference

public ObjectReference ObjectRef()

Returns

ObjectReference

ObjectType()

Return this object's type

public ObjectType ObjectType()

Returns

ObjectType

Owner()

Return this object's owner

public Owner Owner()

Returns

Owner

PreviousTransaction()

Return the digest of the transaction that last modified this object

public TransactionDigest PreviousTransaction()

Returns

TransactionDigest

StorageRebate()

Return the storage rebate locked in this object

Storage rebates are credited to the gas coin used in a transaction that deletes this object.

public ulong StorageRebate()

Returns

UInt64

Version()

Return this object's version

public Version Version()

Returns

Version

Equals(Object)

public bool Equals(Object? other)

Parameters

other Object?

Returns

Boolean

Equals(Object)

public override bool Equals(object? obj)

Parameters

obj Object?

Returns

Boolean