Skip to main content

Object

open class Object : Disposable, AutoCloseable, ObjectInterface

An object on the IOTA blockchain

BCS

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

Constructors​

Objectconstructor(data: ObjectData, owner: Owner, previousTransaction: TransactionDigest, storageRebate: ULong)

Functions​

NameSummary
asOptPackageopen override fun asOptPackage(): MovePackage?
Try to interpret this object as a move package
asOptStructopen override fun asOptStruct(): MoveStruct?
Try to interpret this object as a move struct
asPackageopen override fun asPackage(): MovePackage
Interpret this object as a move package
asStructopen override fun asStruct(): MoveStruct
Interpret this object as a move struct
close@Synchronized
open override fun close()
dataopen override fun data(): ObjectData
Return this object's data
destroyopen override fun destroy()
digestopen override fun digest(): ObjectDigest
Calculate the digest of this Object
equalsopen operator override fun equals(other: Any?): Boolean
idopen override fun id(): ObjectId
Return this object's id
objectRefopen override fun objectRef(): ObjectReference
Return this object's reference
objectTypeopen override fun objectType(): ObjectType
Return this object's type
owneropen override fun owner(): Owner
Return this object's owner
previousTransactionopen override fun previousTransaction(): TransactionDigest
Return the digest of the transaction that last modified this object
storageRebateopen override fun storageRebate(): ULong
Return the storage rebate locked in this object
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.
toStringopen override fun toString(): String
versionopen override fun version(): Version
Return this object's version

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): Object
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): Object
Create this type from a JSON encoded string.