Skip to main content

TreasuryCap

Namespace: IotaSdk

public class TreasuryCap : ITreasuryCap, System.IDisposable

Inheritance Object → TreasuryCap
Implements ITreasuryCap, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TreasuryCap(UInt64)​

public TreasuryCap(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

TotalSupply()​

Total supply of the coin currently in circulation, in base units.

public ulong TotalSupply()

Returns​

UInt64

TryFromBcs(Byte[])​

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

public static TreasuryCap TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

TreasuryCap

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

Parameters​

object Object

typeParam TypeTag

Returns​

TreasuryCap

Exceptions​

SdkFfiException