Dear Edna Mae,
I am very sorry about your sick fishy.
It sounds like it could be a bacterial infection or body fungus that you would treat with Maracyn medication for fish that you get at the aquarium store or fish department of a pet store.
Yes, salt, but not Epsom salt - there is much discussion over this - but, the correct answer is the aquarium salt you buy in an aquarium store or the fish department of a pet store. This is a good remedy because it is not as harsh on your fish as medications and it has the possibility of curing various ills. This should be done in a separate hospital tank.
There is also Epsom salt for constipation, like you said, though - that involves putting 1 Tablespoon of of epsom salts into a gallon of water and putting your fish in for 15 minutes and watch to see if he gets unconstipated - that is, if you see him poop. You can do this up to 2 times a day, but it's easier on your fish if you can get him to eat the pea as I explain it below:
Yes, you are right about the pea - it has to be cooked, peeled, cooled and fed in tiny, tiny pieces for him to safely eat it.
I hope he gets better soon. Constipation can be serious - sometimes caused by eating all the same kind of food with no variety and especially those freeze-dried bloodworms they usually like so much if they eat too many of them. Clean water is usually the key, though - and it has to be kept at an even, warm temperature and a water test kit is a good idea, too.
Mary