Skip to main content

KioskExtension

Namespace: IotaSdk

A typed view of a 0x2::kiosk_extension::Extension held in a dynamic field of a [Kiosk] object.

public class KioskExtension : IKioskExtension, System.IDisposable

Inheritance ObjectKioskExtension
Implements IKioskExtension, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

KioskExtension(UInt64)

public KioskExtension(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

IsEnabled()

Whether the extension is currently allowed to call protected actions.

public bool IsEnabled()

Returns

Boolean

Permissions()

Bitmap of the permissions granted to the extension, as a decimal string: bit 0 is place, bit 1 is lock (which also grants place).

public string Permissions()

Returns

String

StorageId()

Object ID of the Bag holding the extension's own storage.

public ObjectId StorageId()

Returns

ObjectId

TryFromBcs(Byte[])

Decode an Extension from raw BCS bytes.

There is no object-based constructor: an extension is stored as a dynamic field of the kiosk, not as a top-level object with its own type tag.

public static KioskExtension TryFromBcs(Byte[] bytes)

Parameters

bytes Byte[]

Returns

KioskExtension

Exceptions

SdkFfiException