Function createInitializeAccountInstruction

  • Construct an InitializeAccount instruction

    Parameters

    • account: PublicKey

      New token account

    • mint: PublicKey

      Mint account

    • owner: PublicKey

      Owner of the new account

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc