Options
All
  • Public
  • Public/Protected
  • All
Menu

An object that knows how to create Mosaics based on the Mosaic Info and Namespace configuration.

Hierarchy

  • Currency

Index

Constructors

constructor

  • new Currency(__namedParameters: { divisibility: number; mosaicId?: MosaicId; namespaceId?: NamespaceId; restrictable: boolean; supplyMutable: boolean; transferable: boolean; unresolvedMosaicId?: MosaicId | NamespaceId }): Currency

Properties

Readonly divisibility

divisibility: number

Divisibility of this currency, required to create Mosaic from relative amounts.

Optional Readonly mosaicId

mosaicId: MosaicId

Mosaic id of this currency. This value is optional if the user only wants to provide the mosaic id. This value will be set if it's loaded by rest.

Optional Readonly namespaceId

namespaceId: NamespaceId

The Namespace id of this currency. This value is option if the user only wants to provide the namespace id. This value will be set if it's loaded by rest.

Readonly restrictable

restrictable: boolean

Is this currency restrictable.

Readonly supplyMutable

supplyMutable: boolean

Is this currency supply mutable.

Readonly transferable

transferable: boolean

Is this currency transferable.

Readonly unresolvedMosaicId

unresolvedMosaicId: UnresolvedMosaicId

The selected unresolved mosaic id used when creating Mosaic. This could either be the Namespace or the Mosaic id.

Static Readonly PUBLIC

PUBLIC: Currency = ...

Currency for public / Public_test network.

This represents the per-network currency mosaic. This mosaicId is aliased with namespace name symbol.xym.

This simplifies offline operations but general applications should load the currency from the repository factory and network currency service.

If you are creating a private network and you need offline access, you can create a Currency in memory.

Methods

createAbsolute

createRelative

Generated using TypeDoc