It sounds like you may have had a phlebitis
which is inflammation in a vein which can cause it to thrombose (block off) and become hard and painful. This is a superficial vein
and so it is not serious. Your symptoms can be helped by antiinflammatory medication although the hard lump may persist if this is the diagnosis. I would encourage you to have a Dr look at the lump.