Wales moved one step closer to a Six Nations grand slam and extended a national record winning streak to 13 matches, beating Scotland 18-11 thanks to tries from Josh Adams and Jonathan Davies.
The win on Sunday (NZ time) means Wales sit on top of the table with 16 points, but face a tough test to clinch the tournament when they host Ireland in Cardiff on March 16.
After dominating the first half, Wales had to survive a stirring second-half comeback as the hosts brought a previously subdued Murrayfield crowd to their feet with a score from Darcy Graham.
The electric winger skipped over after Byron McGuigan sliced through a gap created by a slick inside ball from the returning first-fiveFinn Russell.
But Scotland spurned several opportunities to kick for goal in pursuit of a second try that never came, leaving Wales to breathe a sigh of relief at narrowly closing out a game they had earlier threatened to steamroll.
The visiting side led 15-6 at half-time, with the scoreline not reflecting their overall dominance as an injury-disrupted Scotland struggled to cope with Wales' mix of crushing phase-based attack play and sharp finishing.
Scotland were hit by a string of first-half injuries that added to an already lengthy pre-game roster of absent players, with outside backsTommy Seymour and Blair Kinghorn going off early.
Wales fullback Liam Williams also left in the second half, right arm slung in his shirt.
Wales are on track to win a first grand slam since 2012 after they turned over the tournament's early frontrunners England last month with a 21-13 win in Cardiff.
Scotland meanwhile face the prospect of ending a disappointing campaign with a solitary win unless they can inflict a shock defeat against England in their final fixture.