Skip to main content

TokenPolicyCap

Namespace: IotaSdk

public class TokenPolicyCap : ITokenPolicyCap, System.IDisposable

Inheritance Object → TokenPolicyCap
Implements ITokenPolicyCap, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TokenPolicyCap(UInt64)​

public TokenPolicyCap(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

PolicyId()​

Object ID of the TokenPolicy this cap controls (the Move for field).

public ObjectId PolicyId()

Returns​

ObjectId

TryFromBcs(Byte[])​

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

public static TokenPolicyCap TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

TokenPolicyCap

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

Parameters​

object Object

typeParam TypeTag

Returns​

TokenPolicyCap

Exceptions​

SdkFfiException