Skip to main content

CoinMetadata

CoinMetadata

struct CoinMetadata

The coin metadata associated with the given coin type.

init(address:decimals:description:iconUrl:name:symbol:supply:version:)

init(address: ObjectId, decimals: Int32? = nil, description: String? = nil, iconUrl: String? = nil, name: String? = nil, symbol: String? = nil, supply: UInt64? = nil, version: UInt64)

address

var address: ObjectId

The CoinMetadata object ID.

decimals

var decimals: Int32?

The number of decimal places used to represent the token.

description

var description: String?

Optional description of the token, provided by the creator of the token.

iconUrl

var iconUrl: String?

Icon URL of the coin.

name

var name: String?

Full, official name of the token.

supply

var supply: UInt64?

The overall quantity of tokens that will be issued.

symbol

var symbol: String?

The token's identifying abbreviation.

version

var version: UInt64

Version of the token.