Skip to main content

TokenPolicy

Namespace: IotaSdk

public class TokenPolicy : ITokenPolicy, System.IDisposable

Inheritance Object → TokenPolicy
Implements ITokenPolicy, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TokenPolicy(UInt64)​

public TokenPolicy(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

Rules()​

Fully-qualified type names of the rules attached to each action, keyed by action name.

public Dictionary<string, String[]> Rules()

Returns​

Dictionary<String, String[]>

SpentBalance()​

Balance spent on the spend action, in base units.

public ulong SpentBalance()

Returns​

UInt64

TryFromBcs(Byte[])​

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

public static TokenPolicy TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

TokenPolicy

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 TokenPolicy TryFromObjectWithType(Object object, TypeTag typeParam)

Parameters​

object Object

typeParam TypeTag

Returns​

TokenPolicy

Exceptions​

SdkFfiException