Options
All
  • Public
  • Public/Protected
  • All
Menu

A token asset.

This reflects the data structures inside the tokens.json data file.

Hierarchy

  • Token

Index

Properties

decimals

decimals: number

No. of digits to the right of the decimal point in the standard unit of this token.

For example, for eGLD the value should be 18. This also means the smallest unit of denomination is 1 / 10^18.

id

id: string

Token id.

Optional img

img: undefined | string

Either path to or a Base64-encoded string for an image representing the token.

name

name: string

Display-friendly name.

Optional rateApiName

rateApiName: undefined | string

The id to use for this token when fetching its exchange rate from Coingecko.

symbol

symbol: string

The display-friendly symbol.

Optional symbolFormatting

symbolFormatting: undefined | string

How the symbol should be formatted.

This is specified as a string template utilising {value} and {symbol}

Default is {value} {symbol}.

Legend

  • Constructor
  • Method
  • Property

Generated using TypeDoc