Skip to main content

GrpcCoinMetadata

Namespace: IotaSdk

The metadata of a coin type.

public record class GrpcCoinMetadata : System.IDisposable, System.IEquatable`1[[IotaSdk.GrpcCoinMetadata, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → GrpcCoinMetadata
Implements IDisposable, IEquatable<GrpcCoinMetadata>
Attributes NullableContextAttribute, NullableAttribute

Properties​

Id​

The id of the 0x2::coin::CoinMetadata object or Currency object (when registered with the CoinRegistry).

public ObjectId? Id { get; init; }

Property Value​

ObjectId

Decimals​

Number of decimal places the coin uses.

public uint? Decimals { get; init; }

Property Value​

UInt32?

Name​

Name for the token.

public string? Name { get; init; }

Property Value​

String

Symbol​

Symbol for the token.

public string? Symbol { get; init; }

Property Value​

String

Description​

Description of the token.

public string? Description { get; init; }

Property Value​

String

IconUrl​

URL for the token logo.

public string? IconUrl { get; init; }

Property Value​

String

MetadataCapId​

The MetadataCap id if it has been claimed for the coin type.

public ObjectId? MetadataCapId { get; init; }

Property Value​

ObjectId

MetadataCapState​

State of the MetadataCap for the coin type.

public GrpcMetadataCapState? MetadataCapState { get; init; }

Property Value​

GrpcMetadataCapState?

Constructors​

GrpcCoinMetadata(ObjectId, UInt32?, String, String, String, String, ObjectId, GrpcMetadataCapState?)​

The metadata of a coin type.

public GrpcCoinMetadata(ObjectId? Id, uint? Decimals, string? Name, string? Symbol, string? Description, string? IconUrl, ObjectId? MetadataCapId, GrpcMetadataCapState? MetadataCapState)

Parameters​

Id ObjectId?
The id of the 0x2::coin::CoinMetadata object or Currency object (when registered with the CoinRegistry).

Decimals UInt32?
Number of decimal places the coin uses.

Name String?
Name for the token.

Symbol String?
Symbol for the token.

Description String?
Description of the token.

IconUrl String?
URL for the token logo.

MetadataCapId ObjectId?
The MetadataCap id if it has been claimed for the coin type.

MetadataCapState GrpcMetadataCapState?
State of the MetadataCap for the coin type.

Methods​

Dispose()​

public void Dispose()