Skip to main content

CoinMetadata

Namespace: IotaSdk

public class CoinMetadata : ICoinMetadata, System.IDisposable

Inheritance Object → CoinMetadata
Implements ICoinMetadata, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

CoinMetadata(UInt64)​

public CoinMetadata(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Decimals()​

public byte Decimals()

Returns​

Byte

Description()​

public string Description()

Returns​

String

IconUrl()​

public string? IconUrl()

Returns​

String?

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

Name()​

public string Name()

Returns​

String

Symbol()​

public string Symbol()

Returns​

String

TryFromBcs(Byte[])​

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

public static CoinMetadata TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

CoinMetadata

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

Parameters​

object Object

typeParam TypeTag

Returns​

CoinMetadata

Exceptions​

SdkFfiException