Skip to main content

CoinManager

Namespace: IotaSdk

public class CoinManager : ICoinManager, System.IDisposable

Inheritance Object → CoinManager
Implements ICoinManager, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

CoinManager(UInt64)​

public CoinManager(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

ImmutableMetadata()​

Frozen fallback metadata, used only if the original metadata has been frozen.

public ImmutableCoinMetadata? ImmutableMetadata()

Returns​

ImmutableCoinMetadata?

MaximumSupply()​

Optional maximum supply cap, in base units.

public ulong? MaximumSupply()

Returns​

UInt64?

Metadata()​

The coin's CoinMetadata, if still held by the manager.

public IotaCoinMetadata? Metadata()

Returns​

IotaCoinMetadata?

MetadataImmutable()​

Whether the metadata is considered immutable.

public bool MetadataImmutable()

Returns​

Boolean

SupplyImmutable()​

Whether the supply is considered immutable.

public bool SupplyImmutable()

Returns​

Boolean

TreasuryCap()​

The embedded TreasuryCap controlling the coin's supply.

public TreasuryCap TreasuryCap()

Returns​

TreasuryCap

TryFromBcs(Byte[])​

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

public static CoinManager TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

CoinManager

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

Parameters​

object Object

typeParam TypeTag

Returns​

CoinManager

Exceptions​

SdkFfiException