The majority of cramps in the legs and feet are most likely related to not drinking enough water and other liquids... Dehydration has other health issues related to it so make sure
that you drink enough.(
but not adult beverages!!!

If you you are on HRT, many of the meds can delete water and salt and perhaps potassium in your system.
Spriro is a T-blocker as well as a potassium sparing diuretic so be careful that your potassium doesn't get too high per the results of your frequent blood tests.... if it does, go a little easy on bananas, tomatoes, sunflower seeds, etc. Your doctor can give you the correct advice on this.
One the best home remedies for me is to eat enough salty foods... salt helps your body to retain water... and thus, less cramps.
Many transitioners report a penchant for Dill Picklles... and a craving for salt including potato chips, fritos, etc.
A quick solution for me if I have cramps in the middle of the night is to drink a few ounces of dill pickle juice, or even a spoonful or two of yellow mustard. The salt contents of the dill pickle juice and of the mustard ... (mustard also contains Tumeric... another good anti-cramp item) ..... can help solve the cramping withing several minutes.
I usually eat several dill pickles a day, I crave them, and as a "pre-emptive strike" right before bed time I drink some dill pickle juice...
It is not as bad as it sounds, try it before rejecting the thought... in fact I rather like the taste of it given my craving for salty things.
As a side note, if you look at my open dill pickle jar in my refrigerator, the juice is usually all but gone!!!! I usually go through a large jar of dill pickles weekly!!!
Hugs and well wishes,
Danielle