Skip to main content

PurchaseCap

PurchaseCap Objects

class PurchaseCap(PurchaseCapProtocol)

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

try_from_bcs

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

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) -> PurchaseCap

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

id

def id() -> ObjectId

The object's ID.

item_id

def item_id() -> ObjectId

Object ID of the listed item.

kiosk_id

def kiosk_id() -> ObjectId

Object ID of the kiosk the listed item belongs to.

min_price

def min_price() -> int

Minimum price the item may be purchased for, in nanos.