Hierarchy

  • TokenAmount

Constructors

Properties

amount: BN

Raw amount of token lamports

decimals: number

Number of decimals configured for token's mint

uiAmount: string

Token amount as string, accounts for decimals

uiAmountFloat: number

Token amount as a float, accounts for decimals. Imprecise at large numbers

Methods

  • Parameters

    • lamports: BN
    • decimals: number

    Returns number

  • Parameters

    • uiAmount: string
    • decimals: number

    Returns BN

Generated using TypeDoc