The first step in treating a heart attack is to restore blood flow to the heart quickly. This may involve giving oxygen and medications. These include anti-clotting drugs like aspirin, nitroglycerin for chest pain, and drugs to dissolve blood clots.Antiarrhythmic drugs are also used to keep the heart’s rhythm stable.