Sorry, but a requirement for getting earned income credit is that you must have income earned from working. You say, "I did not work." If you did not work, you are not eligible to receive earned income credit or any other child-related credit. Perhaps there is someone who has been supporting you and your child who should/could be claiming both of you as dependents on their tax return.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**