Get Formatted Leaderboard
Fetches and formats the leaderboard with ranks for a specific tournament.
getFormattedLeaderboard
Fetches and formats the leaderboard with ranks for a specific tournament.
Syntax
Parameters
tournamentID: ID of the tournament.
userAddress (optional): Address of the user to highlight their rank.
Returns
Array: Leaderboard data with ranks and statistics.
Example
Sample Return