Skip to main content

Display

Display Objects

class Display(DisplayProtocol)

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

try_from_bcs

@classmethod
def try_from_bcs(cls, bytes: bytes) -> Display

Decode from BCS bytes, without validating the on-chain type tag.

try_from_object_with_type

@classmethod
def try_from_object_with_type(cls, object: Object,
type_param: TypeTag) -> Display

Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.

fields

def fields() -> dict[str, str]

The display template as key/value pairs (e.g. name, link, image_url, description).

id

def id() -> ObjectId

The object's ID.

version

def version() -> int

Version, bumped manually by the publisher on each update.