The Rockets have sent James Harden to the Nets in a blockbuster four-team trade that also involves the Pacers and Cavaliers, completing the unhappy star’s exit from Houston and setting up a potential superteam in Brooklyn, sources told ESPN’s Adrian Wojnarowski and Ramona Shelburne.

The Nets sent Houston a package that includes multiple players and draft picks and features guard Caris LeVert, who was then traded to the Pacers for Victor Oladipo, sources told ESPN.

Center Jarrett Allen and forward Taurean Prince are headed from the Nets to the Cavs in the deal, sources told ESPN, while the Rockets receive Cleveland guard Dante Exum and Brooklyn forward Rodions Kurucs

Houston also receives Brooklyn’s three unprotected first-round draft picks in the deal — in 2022, 2024 and 2026 — plus pick swaps in 2021, 2023, 2025 and 2027, sources told ESPN. The Rockets also get Cleveland’s 2022 first-round pick, via the Milwaukee Bucks, and Houston is sending a 2023 second-round pick to the Pacers, sources told ESPN.

Brooklyn also gets a 2024 second-round pick from the Cavaliers. The Nets have three open roster spots to fill out their bench, if they choose — a $5.7 million tax mid-level, the minimum exception and likely a $5.7 million disabled player exception.