An anonymous person in South Carolina finally claimed the record-setting prize from October’s $1.54 billion Mega Millions jackpot, opting to collect a one-time lump sum of $877,784,124.

The state’s lottery commission announced on Monday that the person had stepped forward, ending questions about why, five months after the winning numbers were announced, no one had claimed the money. It was the largest payout to a single lottery winner in United States history.

The winner had until April 19 to claim the money.

Winning the lottery comes with a long list of difficult decisions, which may explain the delay in making the claim. Thus far, the winner has followed the typical playbook to minimize or avoid potential complications: The person has stayed anonymous, and has gotten help.

The winner retained Jason M. Kurland, a New York lawyer who has branded himself the “Lottery Lawyer” after representing several high-profile winners. In October, Mr. Kurland told The New York Times that the biggest challenge is making sure the windfall does not ruin personal relationships.