We can have moral certainty not absolute certainty. If you have confessed your mortal sins you are in a state of grace (but you leave it with any new mortal sins). If you’re not sure if your sins are mortal, you can still go and confess them and maybe talk to the priest how to tell the difference. You can still confess venial sins too
A quote from St. Francis de Sales said that one helpful way of having some indication of being in a state of grace is if we’re not willing to offend God in the slightest.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.