Yes they get growing pains at two; my son had them. He got them all his life (he is 16 now). One of my daghters also had them. They are my TALL kids. Long legged.
Just take her to the potty to try (GENTLY!) she may be worried subconsiously about wetting bed. In fact, you may have been taking her every hour during training, right?
Then take her back and massage sore limb. Another idea is to make her a lil bed on the floor beside your bed, just temporary- to get through this time.
The good news is growing pains come and go.
A helpful thing also is that leg massage that begins high and ends up at toes helps them falls back to sleep.
My mom used to have us get up and walk on the leg(s) that hurt. It makes it stop quicker. But the massage is a nice ending.
Bet for sure she will grow real fast - real soon. Do measure her height every day. Some kids literally grow overnight. Mine would get chunky, then sprout tall and lose the chunkiness, all through childhood.