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 Object → Object
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
AsPackageOpt()
Try to interpret this object as a move package
public MovePackage? AsPackageOpt()
Returns
AsStruct()
Interpret this object as a move struct
public MoveStruct AsStruct()
Returns
AsStructOpt()
Try to interpret this object as a move struct
public MoveStruct? AsStructOpt()
Returns
Data()
Return this object's data
public ObjectData Data()
Returns
Digest()
Calculate the digest of this Object
This is done by hashing the BCS bytes of this Object prefixed
public ObjectDigest Digest()
Returns
Id()
Return this object's id
public ObjectId Id()
Returns
ObjectRef()
Return this object's reference
public ObjectReference ObjectRef()
Returns
ObjectType()
Return this object's type
public ObjectType ObjectType()
Returns
Owner()
Return this object's owner
public Owner Owner()
Returns
PreviousTransaction()
Return the digest of the transaction that last modified this object
public TransactionDigest PreviousTransaction()
Returns
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
Version()
Return this object's version
public Version Version()
Returns
Equals(Object)
public bool Equals(Object? other)
Parameters
other Object?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?