Developer Hub
🔮 For applications
SDK
Utils
getWaveLeaderBoard

Returns the Wave Total Leaderboard data or Wave Leaderboard for Specific Period.

Usage

import { getWaveLeaderBoard } from '@azuro-org/sdk/utils'
 
const periods = await getWaveLeaderBoard()

Props

{
  waveId?: WaveId
  account?: Address
  startsAt?: number
  chainId?: ChainId
}
type WaveId = number | 'active'
 
type ChainId =  100 | 137 | 80002 | 88888 | 88882

Return Value

Array<{
  position: number
  address: Address
  points: string
  bonusPoints: string | null
  totalMultipliedPoints: string
  bonusMultiplier: number | null
  level: number | null
  levelDescription: WaveLevelData | null
}> | null
type WaveLevelData = {
  level: number
  name: WaveLevelName
  boost: string
  pointsNeeded: string
  comment: string
}