How are the leads attached to my heart?

The leads typically go directly into the heart through a vein and are attached to the heart wall.