There is no magic formula to beating any kind of a case. A strategy is formed on a case by case basis once a lawyer looks over the discovery, visits the scene, interviews any defense witnesses he may have and confers with the prosecutor. Without knowing that, any lawyer would be a liar if he told you he could win your case and how he'd do it.
Drug trafficking cases are difficult to win because all of the witnesses are usually police witnesses, and juries tend to believe them. But they can certainly be won, and there are many different types of defenses that can be used together or separately to try to create reasonable doubt in the minds of a jury that the defendant was actually drug trafficking.
In your situation, it would appear that they are basing the trafficking charge on the amount of drugs in your possession. The state will charge trafficking whenever the amount of drugs in a person's possession exceeds what is reasonable for personal use. But they don't have any direct evidence of sale, unless they have also found great amounts of cash or have taken your mobile phone. With a warrant they can go through your phone and texts to look for evidence of drug sale and charge you accordingly.
Without that, it looks like you'd have a better defense to the drug trafficking than to the child endangering, for if you are a known drug abuser, arguably your child is at risk in your household.
You are in serious difficulty and in need of an experienced lawyer who has successfully tried a goodly amount of drug cases. If you cannot afford a lawyer, in my experience drug cases make up a very large chunk of a public defender's caseload, and they should know how to try a drug case and win it.