Drug dealer Ronald Meek was caught selling Class A drugs from the back of a taxi.
Police swooped in after seeing a stationary cab in Fenton with three people outside.
They spoke to the 44-year-old defendant in the back seat and he was found in possession of 23 wraps of heroin and 26 wraps of cocaine in a kinder egg, £30 cash and a Nokia phone. He admitted he had just sold some drugs.
Now Meek has been jailed for 28 months at Stoke-on-Trent Crown Court.
Prosecutor Ilana Davis said police saw a stationary taxi at the junction with Carron Street and Goldenhill Road, Fenton, at 2pm on May 16.
Miss Davis said: “Three people were outside the car. The police spoke to Meek, the rear passenger. He admitted possession of drugs and that he had been dealing to three people outside the taxi.
“He was found with 23 wraps of heroin, 26 wraps of cocaine, £30 cash and a black Nokia phone.”
Meek, of Caroline Street, Longton, pleaded guilty to two offences of possessing a Class A drug with intent to supply.
Catherine O’Reilly, mitigating, said the defendant was candid with the police. She said he has no previous convictions for dealing drugs and he has not offended since 2007.
He had a family in Dorset but the relationship broke down and he returned to the Potteries in 2011.
Miss O’Reilly said: “He immediately stepped back into the culture of drugs.”
She said on one occasion the defendant injected heroin which was laced with anthrax. It knocked him unconscious and the blood supply was cut off to his leg which had to be amputated above the knee.
Miss O’Reilly added the defendant is now drug-free.
Judge Paul Glenn said: “You were arrested by the police. You admitted having just dealt drugs to three people and you were found with a kinder egg in which the police found 23 £10 deals of heroin and 26 of cocaine.
“You told the probation officer how you came to return to drug use after a period of abstinence. You became involved in supplying after being held responsible for the value of drugs seized by the police in a previous incident.
“That resulted in pressure being brought to bear and you were involved in supplying for a couple of months.
“You were selling two highly addictive Class A drugs. You know from your own experience the potential harm drugs can cause. You also know the likely consequences if you are caught.
“It is so serious that only immediate prison is appropriate.”
The sentence was welcomed by Staffordshire Police. Sergeant Marc Proctor, of Stoke South Neighbourhood Policing team, said: “We’re thrilled with Meek’s sentence and it’s testament to great work by local officers in taking a pro-active action.
“This was a drug problem that was causing a lot of concern to residents and we hope this acts a deterrent to anyone considering becoming involved in any drugs activity in our county.”