Police discovered almost 47 grams of cocaine when they forced entry to an Inverness flat.
Recardo Colebridge, of Arbroath Way in Aberdeen, admitted being concerned in the supply of cocaine from Hilton Court in Inverness, between November 1 and December 2, 2015.
Sheriff Margaret Neilson heard at Inverness Sheriff Court that when police went to the property to speak to the 25-year-old on another matter the noise of the toilet flushing aroused their suspicions that there may be drugs in the house.
Officers later found two Sanex containers with bags of cocaine, with a total street value of between £2,200 and £4,700.
They also found 11.29 grams of benzocaine which is used to mix with cocaine before onward sale and supply.
Colebridge’s fingerprints were on the containers and £1,785 in cash was recovered, fiscal depute Michelle Molley said.
Sentence was deferred until December 12 for a background report.