Options
All
  • Public
  • Public/Protected
  • All
Menu

A currency is any fungible financial instrument on Solana, including SOL and all SPL tokens.

The only instance of the base class Currency is SOL.

Hierarchy

Index

Constructors

Properties

Constructors

  • new Currency(decimals: number, symbol?: string, name?: string): Currency
  • Constructs an instance of the base class Currency. The only instance of the base class Currency is Currency.SOL.

    Parameters

    • decimals: number

      decimals of the currency

    • symbol: string = "UNKNOWN"

      symbol of the currency

    • name: string = "UNKNOWN"

      name of the currency

    Returns Currency

Properties

decimals: number
name?: string
symbol?: string
SOL: Currency = ...

The only instance of the base class Currency.