Function uiAmountToAmount

  • Amount as a string using mint-prescribed decimals

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • mint: PublicKey

      Mint for the account

    • amount: string

      Ui Amount of tokens to be converted to Amount

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<bigint | TransactionError | null>

    Ui Amount generated

Generated using TypeDoc