Yes, the 30% tax credit for the cost of buying and installing a solar system is available for 2018 and 2019.
You will have to figure out the portion of the purchase price that was for the cost and installation of the solar panels.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"