I hope you are ok this morning and the bleeding and pains subsided. You will need to recover from the blood loss over the next few weeks......nothing too strenuous and plenty of fluids and up your iron, B12 intake.
Your mc sounds like mine was, it started with spotting for a few days then on the evenign of the 3rd day had contractions, heavy blood flow in gushes and passed lots on the loo. That painful heavy bit lasted 12 hours and by 7am the next morning it was just medium period flow.
Hopefully your scan will show everything has passed and as it should be. sorry you had to go through it.