Methylnaltrexone bromide ( MTNX ) is a peripherally acting mu-opioid receptor antagonist , prescribed for the treatment of opioid-induced constipation in patients with advanced illness who are receiving palliative care .