The Pittsburgh Pirates are building around third baseman Ke'Bryan Hayes.

A person with knowledge of the agreement tells The Associated Press the Pirates and Hayes have come to terms on a new eight-year, $70 million deal pending the 25-year-old Hayes passing a physical. The person spoke to the AP on condition of anonymity because a formal announcement isn't expected until the team's home opener on April 12.

Hayes batted third in Pittsburgh's season-opening 9-0 loss at St. Louis on Thursday but exited with left forearm spasms in the first inning. He was limited to 96 games last year due to a left wrist injury.

"I had a cramp down from my thumb to my forearm," Hayes said. "Thankfully, it wasn't anything serious."

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Pittsburgh Pirates third baseman Ke'Bryan Hayes takes up his position during the first inning of a baseball game against the St. Louis Cardinals Thursday, April 7, 2022, in St. Louis.

Pittsburgh Pirates third baseman Ke'Bryan Hayes takes up his position during the first inning of a baseball game against the St. Louis Cardinals Thursday, April 7, 2022, in St. Louis. (AP Photo/Jeff Roberson)

Hayes indicated that he should be able to play in the Pirates' next game on Saturday.

The deal gives the team some stability as they continue a methodical build-up under general manager Ben Cherington. Hayes, the son of former major leaguer Charlie Hayes and a first-round pick in the 2015 amateur draft, reached the big leagues in 2020.

Hayes entered the 2022 season hitting .280 in 120 career games. Known for his strong defensive play, Hayes made a splash upon his arrival in September 2020, winning Rookie of the Month during an electric debut. He struggled in 2021 amid the wrist issue.

The contact also gives a fan base growing antsy after three straight last-place finishes a player to attach itself to. The Pirates are still in a transition period, with most of the prospects they've accumulated since Cherington took over in the fall of 2019 still at least a year or two from arriving in Pittsburgh.

The Pirates are expected to finish at or near the bottom of the NL Central again with a largely unheralded and inexpensive roster. Cherington has said repeatedly that the team will start making investments when it believes it is close to winning, and the agreement with Hayes provides the first tangible evidence of a long-term plan at the big-league level.

The contract, which goes into effect this season carries through at least 2029 and includes an option for 2030.