Skip to main content

GrpcCoinMetadata

data class GrpcCoinMetadata(var id: ObjectId?, var decimals: UInt?, var name: String?, var symbol: String?, var description: String?, var iconUrl: String?, var metadataCapId: ObjectId?, var metadataCapState: GrpcMetadataCapState?) : Disposable

The metadata of a coin type.

Constructors​

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

Properties​

NameSummary
decimalsvar decimals: UInt?
Number of decimal places the coin uses.
descriptionvar description: String?
Description of the token.
iconUrlvar iconUrl: String?
URL for the token logo.
idvar id: ObjectId?
The id of the 0x2::coin::CoinMetadata object or Currency object (when registered with the CoinRegistry).
metadataCapIdvar metadataCapId: ObjectId?
The MetadataCap id if it has been claimed for the coin type.
metadataCapStatevar metadataCapState: GrpcMetadataCapState?
State of the MetadataCap for the coin type.
namevar name: String?
Name for the token.
symbolvar symbol: String?
Symbol for the token.

Functions​

NameSummary
destroyopen override fun destroy()