Function createUiAmountToAmountInstruction

  • Construct a UiAmountToAmount instruction

    Parameters

    • mint: PublicKey

      Public key of the mint

    • amount: string

      UiAmount of tokens to be converted to Amount

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc