コンテンツにスキップ

MosaicDescriptor⚓︎

MosaicDescriptor
Type safe descriptor used to generate a descriptor map for MosaicDescriptor.

A quantity of a certain mosaic.

Constructors⚓︎

new MosaicDescriptor()⚓︎

new MosaicDescriptor(mosaicId, amount): MosaicDescriptor

Creates a descriptor for Mosaic.

Parameters⚓︎

Parameter Type Description
mosaicId MosaicId Mosaic identifier.
amount Amount Mosaic amount.

Returns⚓︎

MosaicDescriptor

Properties⚓︎

Property Type
rawDescriptor object
rawDescriptor.amount Amount
rawDescriptor.mosaicId MosaicId

Methods⚓︎

toMap()⚓︎

toMap(): object

MosaicDescriptor.toMap
Builds a representation of this descriptor that can be passed to a factory function.

Returns⚓︎

object

Descriptor that can be passed to a factory function.