With their sights on Chris Bosh and the cap room it will take to land the free agent All Star, the Rockets traded Jeremy Lin to the Los Angeles Lakers.

The Rockets will send Lin and their first-round pick next season plus a future second-round pick to the Lakers to move Lin’s contract. Lin is due to earn roughly $15 million in the final season of his three- year contract with the Rockets, but would count $8.37 million on the salary cap. The Rockets will receive draft rights to an international player to be determined that the Lakers own the rights to.

Lin averaged 12.5 points and 4.1 assists with the Rockets, coming off the bench in all but 33 of the 71 games he played.

The deal could be the clearest sign that the Rockets are confident they will land Bosh. They already had a deal in place to deal Omer Asik and his matching contract to the New Orleans Pelicans. The Pelicans have yet to clear the cap room to complete that deal, but are expected to have those moves in place in the coming days.