Skip to main content

IObject

Namespace: IotaSdk

An object on the IOTA blockchain

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

public interface IObject : System.IEquatable`1[[IotaSdk.Object, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IEquatable<Object>
Attributes NullableContextAttribute

Methods​

AsOptPackage()​

Try to interpret this object as a move package

MovePackage? AsOptPackage()

Returns​

MovePackage?

AsOptStruct()​

Try to interpret this object as a move struct

MoveStruct? AsOptStruct()

Returns​

MoveStruct?

AsPackage()​

Interpret this object as a move package

MovePackage AsPackage()

Returns​

MovePackage

AsStruct()​

Interpret this object as a move struct

MoveStruct AsStruct()

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

ToBcs()​

Convert this type to BCS encoded bytes.

Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToDisplayString()​

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

string ToJson()

Returns​

String

Exceptions​

SdkFfiException

Version()​

Return this object's version

Version Version()

Returns​

Version