Skip to main content

Kiosk

Kiosk Objects

class Kiosk(KioskProtocol)

A typed view of an on-chain 0x2::kiosk::Kiosk object.

try_from_bcs

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

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

try_from_object

@classmethod
def try_from_object(cls, object: Object) -> Kiosk

Decode from an on-chain object, validating its Move type tag.

id

def id() -> ObjectId

The object's ID.

item_count

def item_count() -> int

Number of items stored in the kiosk.

profits

def profits() -> int

Accumulated sale profits in nanos.