Defenseman Torey Krug, one of the top prizes in this year's NHL free-agent class, has agreed to a seven-year contract worth $45.5 million with the St. Louis Blues, the team announced Friday night.

A blue-line staple for the Bruins, Krug, 29, has spent his entire NHL career with Boston, playing in 523 games. A quarterback of the power play, he has 67 career goals and 337 points.