Jamal Murray's breakout NBA season has paid off.

The 22-year-old from Kitchener, Ont., agreed to a five-year, $170 million US contract extension with the Denver Nuggets, the richest deal for a Canadian player in NBA history.

"RUN IT BACK X5!! DENVEERRR," Murray posted on Instagram on Sunday. "We got some unfinished business! Just wanna thank the Nuggets organization for believing in me from the jump. Let's get to work. AND IT'S CANADA DAY."

Murray's agent Mike George confirmed the max contract extension to The Canadian Press, although contracts aren't officially signed until the free agency moratorium period ends on Saturday.

Murray's deal tops the five-year, $148 million deal that Canadian Andrew Wiggins signed with the Minnesota Timberwolves in 2017.

Murray, a Kentucky product who was drafted seventh overall by Denver in 2016, averaged 18.2 points and 4.8 rebounds this past season, guiding the upstart Nuggets to within a game of the Western Conference finals.

Big payday in 2020-21

He poured in a career-high 48 points, including 19 in the fourth quarter, in a 115-107 in November, tying Steve Nash's record for most points in a single game by a Canadian. Nash had 48 in a playoff game in 2005. Murray's 48 is the most by a Canadian in a regular-season game, topping the 47 Wiggins scored in 2016.

Murray was 19-for-30 on the historic night, connecting on five three-pointers.

The Canadian, who recently returned from coaching in the NBA's first-ever Basketball Without Borders camp in Medellin, Colombia, will earn about $4.4 million this season before his contract skyrockets to $29.25 million for 2020-21.

The Denver point guard's extension highlighted a busy opening night of NBA free agency for Canadians on Saturday.

The Dallas Mavericks acquired Kelly Olynyk in a sign-and-trade agreement with Miami, according to multiple reports. The 28-year-old Olynyk signed a four-year, $50-million deal with the Heat in 2017.

Kings sign ex-Raptor Cory Joseph

He'll join fellow Canadian big man Dwight Powell in Miami's front court. Powell, a 27-year-old from Toronto, reportedly agreed on a three-year, $33-million contract extension with Dallas on Saturday night.

Canadian point guard Cory Joseph is on the move from Indiana to the Sacramento Kings. The former Toronto Raptors guard from Pickering, Ont., joins Canadian coach Roy Rana, who left Toronto's Ryerson University to join Luke Walton's staff.

"Thank you Pacers for 2 great years playing for the organization," Joseph wrote on Instagram. "Shout out to all of the fans in Indy, you will be missed! Hey Sactown, can't wait to get there, meet the SacramentoKings fans and get to work. Much love and respect .CJ6"

Murray's massive contract tops the $12.5 million Edmonton Oilers star Connor McDavid earns annually.

Joey Votto is the highest-paid Canadian baseball player, agreeing to a $251.5 million, 12-year deal with the Cincinnati Reds in 2012.