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
AsOptStruct()
Try to interpret this object as a move struct
MoveStruct? AsOptStruct()
Returns
AsPackage()
Interpret this object as a move package
MovePackage AsPackage()
Returns
AsStruct()
Interpret this object as a move struct
MoveStruct AsStruct()
Returns
Data()
Return this object's data
ObjectData Data()
Returns
Digest()
Calculate the digest of this Object
This is done by hashing the BCS bytes of this Object prefixed
ObjectDigest Digest()
Returns
Id()
Return this object's id
ObjectId Id()
Returns
ObjectRef()
Return this object's reference
ObjectReference ObjectRef()
Returns
ObjectType()
Return this object's type
ObjectType ObjectType()
Returns
Owner()
Return this object's owner
Owner Owner()
Returns
PreviousTransaction()
Return the digest of the transaction that last modified this object
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.
ulong StorageRebate()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
Byte[] ToBcs()
Returns
Exceptions
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
ToJson()
Convert this type to a JSON encoded string.
string ToJson()
Returns
Exceptions
Version()
Return this object's version
Version Version()