Skip to main content

Kiosk

Namespace: IotaSdk

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

public class Kiosk : IKiosk, System.IDisposable

Inheritance ObjectKiosk
Implements IKiosk, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

Kiosk(UInt64)

public Kiosk(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

Id()

The object's ID.

public ObjectId Id()

Returns

ObjectId

ItemCount()

Number of items stored in the kiosk.

public uint ItemCount()

Returns

UInt32

Owner()

public Address Owner()

Returns

Address

Profits()

Accumulated sale profits in nanos.

public ulong Profits()

Returns

UInt64

TryFromBcs(Byte[])

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

public static Kiosk TryFromBcs(Byte[] bytes)

Parameters

bytes Byte[]

Returns

Kiosk

Exceptions

SdkFfiException

TryFromObject(Object)

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

public static Kiosk TryFromObject(Object object)

Parameters

object Object

Returns

Kiosk

Exceptions

SdkFfiException