Skip to main content

GrpcCoinMetadata

GrpcCoinMetadata​

struct GrpcCoinMetadata

The metadata of a coin type.

init(id:decimals:name:symbol:description:iconUrl:metadataCapId:metadataCapState:)​

init(id: ObjectId?, decimals: UInt32?, name: String?, symbol: String?, description: String?, iconUrl: String?, metadataCapId: ObjectId?, metadataCapState: GrpcMetadataCapState?)

decimals​

var decimals: UInt32?

Number of decimal places the coin uses.

description​

var description: String?

Description of the token.

iconUrl​

var iconUrl: String?

URL for the token logo.

id​

var id: ObjectId?

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

metadataCapId​

var metadataCapId: ObjectId?

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

metadataCapState​

var metadataCapState: GrpcMetadataCapState?

State of the MetadataCap for the coin type.

name​

var name: String?

Name for the token.

symbol​

var symbol: String?

Symbol for the token.