Function createInitializeAccount2Instruction

  • Construct an InitializeAccount2 instruction

    Parameters

    • account: PublicKey

      New token account

    • mint: PublicKey

      Mint account

    • owner: PublicKey

      New account's owner/multisignature

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc