How are the leads attached to my heart?

When your heart device is implanted, your doctor threads one end of the lead through a vein into your heart, attaching the lead tip to the heart wall. Your doctor then connects the other end of the lead to your heart device.