IMPORTANCE Diacetylmorphine hydrochloride (the active ingredient in heroin), delivered under supervision, is effective for the treatment of severe opioid use disorder. However, owing to political and regulatory barriers, it is not available in many settings around the world, which limits the options for many long-term street opioid injectors not attracted into or retained in available treatments. OBJECTIVE To test if injectable hydromorphone hydrochloride is noninferior to injectable diacetylmorphine in reducing illicit heroin use for chronic injection opioid users after 6 months of intervention. DESIGN, SETTING, AND PARTICIPANTS The Study to Assess Longer-term Opioid Medication Effectiveness (SALOME) was a phase 3, double-blind, noninferiority trial. The study randomized 202 long-term street opioid injectors in Vancouver,