Function createAmountToUiAmountInstruction

  • Construct a AmountToUiAmount instruction

    Parameters

    • mint: PublicKey

      Public key of the mint

    • amount: number | bigint

      Amount of tokens to be converted to UiAmount

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc