Skip to main content

IObject

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 interface IObject : System.IEquatable`1[[IotaSdk.Object, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IEquatable<Object>
Attributes NullableContextAttribute

Methods

AsPackage()

Interpret this object as a move package

MovePackage AsPackage()

Returns

MovePackage

AsPackageOpt()

Try to interpret this object as a move package

MovePackage? AsPackageOpt()

Returns

MovePackage?

AsStruct()

Interpret this object as a move struct

MoveStruct AsStruct()

Returns

MoveStruct

AsStructOpt()

Try to interpret this object as a move struct

MoveStruct? AsStructOpt()

Returns

MoveStruct?

Data()

Return this object's data

ObjectData Data()

Returns

ObjectData

Digest()

Calculate the digest of this Object

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

ObjectDigest Digest()

Returns

ObjectDigest

Id()

Return this object's id

ObjectId Id()

Returns

ObjectId

ObjectRef()

Return this object's reference

ObjectReference ObjectRef()

Returns

ObjectReference

ObjectType()

Return this object's type

ObjectType ObjectType()

Returns

ObjectType

Owner()

Return this object's owner

Owner Owner()

Returns

Owner

PreviousTransaction()

Return the digest of the transaction that last modified this object

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.

ulong StorageRebate()

Returns

UInt64

Version()

Return this object's version

Version Version()

Returns

Version