Skip to main content

PurchaseCap

Namespace: IotaSdk

public class PurchaseCap : IPurchaseCap, System.IDisposable

Inheritance Object → PurchaseCap
Implements IPurchaseCap, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

PurchaseCap(UInt64)​

public PurchaseCap(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

ItemId()​

Object ID of the listed item.

public ObjectId ItemId()

Returns​

ObjectId

KioskId()​

Object ID of the kiosk the listed item belongs to.

public ObjectId KioskId()

Returns​

ObjectId

MinPrice()​

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

public ulong MinPrice()

Returns​

UInt64

TryFromBcs(Byte[])​

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

public static PurchaseCap TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

PurchaseCap

Exceptions​

SdkFfiException

TryFromObjectWithType(Object, TypeTag)​

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

public static PurchaseCap TryFromObjectWithType(Object object, TypeTag typeParam)

Parameters​

object Object

typeParam TypeTag

Returns​

PurchaseCap

Exceptions​

SdkFfiException