You will need major surgery, and then be treated with immunosuppressive drugs for the rest of your life.
While these drugs can prevent rejection of the heart, they make the recipient more vulnerable to infections and some cancers. However, if one is in end stage heart failure
there are few alternatives. Even so, there are not enough donor hearts available for all that need one.