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
| Object | constructor(data: ObjectData, owner: Owner, previousTransaction: TransactionDigest, storageRebate: ULong) |
Functions
| Name | Summary |
|---|---|
| asOptPackage | open override fun asOptPackage(): MovePackage? Try to interpret this object as a move package |
| asOptStruct | open override fun asOptStruct(): MoveStruct? Try to interpret this object as a move struct |
| asPackage | open override fun asPackage(): MovePackage Interpret this object as a move package |
| asStruct | open override fun asStruct(): MoveStruct Interpret this object as a move struct |
| close | @Synchronized open override fun close() |
| data | open override fun data(): ObjectData Return this object's data |
| destroy | open override fun destroy() |
| digest | open override fun digest(): ObjectDigest Calculate the digest of this Object |
| equals | open operator override fun equals(other: Any?): Boolean |
| id | open override fun id(): ObjectId Return this object's id |
| objectRef | open override fun objectRef(): ObjectReference Return this object's reference |
| objectType | open override fun objectType(): ObjectType Return this object's type |
| owner | open override fun owner(): Owner Return this object's owner |
| previousTransaction | open override fun previousTransaction(): TransactionDigest Return the digest of the transaction that last modified this object |
| storageRebate | open override fun storageRebate(): ULong Return the storage rebate locked in this object |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| toString | open override fun toString(): String |
| version | open override fun version(): Version Return this object's version |
Companion object functions
| Name | Summary |
|---|---|
| fromBcs | fun fromBcs(bcs: ByteArray): Object Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): Object Create this type from a JSON encoded string. |