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
ItemId()
Object ID of the listed item.
public ObjectId ItemId()
Returns
KioskId()
Object ID of the kiosk the listed item belongs to.
public ObjectId KioskId()
Returns
MinPrice()
Minimum price the item may be purchased for, in nanos.
public ulong MinPrice()
Returns
TryFromBcs(Byte[])
Decode from BCS bytes, without validating the on-chain type tag.
public static PurchaseCap TryFromBcs(Byte[] bytes)
Parameters
bytes Byte[]
Returns
Exceptions
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