Seasonal Competitions
Methods for working with seasonal competitions.getCurrentSeason
Gets the current active season.Returns
Season object containing season details.Example
getCurrentSeasonId
Gets the ID of the current season.Returns
number - Current season ID.
Example
getSeason
Gets details for a specific season.Parameters
| Name | Type | Description |
|---|---|---|
| seasonId | number | ID of the season |
Returns
Season object containing season details.Example
getSeasonUserStats
Gets a user’s stats for a specific season.Parameters
| Name | Type | Description |
|---|---|---|
| seasonId | number | ID of the season |
| userAddress | Address | Address of the user |
Returns
SeasonUserStats object containing user season stats.Example
listSeasons
Lists all seasons.Returns
Array of Season objects.Example
getSeasonCount
Gets the total number of seasons.Returns
number - Total season count.