Skip to main content

Display

open class Display : Disposable, AutoCloseable, DisplayInterface

A typed view of an on-chain 0x2::display::Display<T> object.

Functions

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
fieldsopen override fun fields(): Map<String, String>
The display template as key/value pairs (e.g. name, link, image_url, description).
idopen override fun id(): ObjectId
The object's ID.
toStringopen override fun toString(): String
versionopen override fun version(): UShort
Version, bumped manually by the publisher on each update.

Companion object functions

NameSummary
tryFromBcsfun tryFromBcs(bytes: ByteArray): Display
Decode from BCS bytes, without validating the on-chain type tag.
tryFromObjectWithTypefun tryFromObjectWithType(object: Object, typeParam: TypeTag): Display
Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.