The court heard how Beach had started diverting methadone at the beginning of this year to make money.
He collected the drug on a Monday, Wednesday and Friday, and was entrusted to administer his prescription on every other day of the week.
Justice Dobson acknowledged "there was no great commerciality involved'' in the offending - Beach would charge $80 per unit, and some methadone had been bartered for bottles of home-brewed whiskey - but the seriousness of the drug dealing was underscored by Miss Wilson's death.
Beach, who sustained head injuries in a road crash in 1976, has been a methadone user for more than 20 years.
His lawyer, Peter Brosnahan, appealed for a sentence of home detention on the basis Beach was "not a well man for obvious reasons''; limited in his mobility and prone to seizures.
Justice Dobson said he had significant concerns about delivering such a sentence, given the address proposed for Beach's home detention was the same property where the offending had occurred.
However, since being charged, Beach has been required to collect and consume his prescription at a Wanganui pharmacy.
In the end, Justice Dobson said he was satisfied that, given the 58-year-old's ailing condition, imprisonment would be undue.
Beach was sentenced to 10 months' home detention.