Get Formatted Leaderboard
Fetches and formats the leaderboard with ranks for a specific tournament.
getFormattedLeaderboard
getFormattedLeaderboard(tournamentID, userAddress)const leaderboard = await sdk.getFormattedLeaderboard(1, "0xUser...");
console.log(leaderboard);[
{
"rank": 1,
"address": "0x123...",
"data": [30, 10, 5000]
},
{
"rank": 2,
"address": "0x456...",
"data": [25, 8, 4500]
}
]Last updated