The agent for the 6-foot-8 Hayward, who averaged career highs of 16.2 points, 5.2 assists, 5.1 rebounds and 1.4 steals last season, confirmed the deal on Saturday after it was first reported by Yahoo Sports.
Utah has not confirmed that it matched the Hornets' offer.
The 37-year-old Carter, an eight-time All-Star who was a key reserve for the
Carter, who is 6-foot-6 and can play guard or small forward, averaged 11.9 points, 3.5 rebounds and 2.6 assists a game for the Mavericks, who were looking to bolster their perimeter shooting. Carter has career shooting percentages of 44.2% from the field, 37.8% from three-point range and 79.9% from the free-throw line.
In other free-agency news, power forward
"Ready for the next challenge in my career. #HeatNation goes on," the 6-foot-10, nine-time All-Star tweeted.
Bosh averaged 16.2 points on 51.6% shooting and 6.6 rebounds a game last season. The 11-year veteran has career averages of 19.2 points and 8.7 rebounds.