A former prosecutor in eastern Kentucky accused of doing favors for criminal defendants in return for methamphetamine and sexual favors pleaded guilty Friday to a federal charge.

OHIO EX-VICE DETECTIVE GETS 11 YEARS IN SEX WORKER KIDNAPPING CASE

Scott Blair, 51, pleaded guilty to honest services wire fraud, the Lexington Herald-Leader reported. Blair resigned as commonwealth’s attorney for Perry County after his arrest last month. The federal charge accused him of depriving Perry County residents of his honest services.

Kentucky crime graphic

A former Kentucky commonwealth's attorney has pleaded guilty to honest wire services fraud. (Fox News)

The criminal complaint said he solicited sex and meth from people facing criminal charges beginning in 2020, and then took actions to help them.

Blair told U.S. Magistrate Judge Hanly A. Ingram during the hearing that he was "quite confident" the charges could be proved and that he feels great contrition over his actions.

CLICK HERE TO GET THE FOX NEWS APP

Although he was running unopposed for another term, he said he would take steps to remove his name from the ballot and give up his law license.