Function tokenAmount

  • Creates an amount of SPL tokens from the provided decimal value.

    Type Parameters

    • I extends string

    • D extends number

    Parameters

    • tokens: number
    • Optional identifier: I
    • Optional decimals: D

    Returns Amount<I, D>

Generated using TypeDoc