Developer Hub
🔮 For applications
SDK
Utils
getWaveStats

Returns the Wave User Stats data.

Usage

import { getWaveStats } from '@azuro-org/sdk/utils'
 
const stats = await getWaveStats({
  account: '0xkn123k...'
})

Props

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

Return Value

{
  address: Address
  waveId: number
  levelActivated: boolean
  initialLevel: number
  level: number
 
  // points by categories
  betPoints: string
  dexPoints: string
  liqudityPoints: string
  stakingPoints: string
  leaderboardPoints: string
  manualPoints: string
  points: string // "2.100000", final points without level multiplier
  multipliedPoints: string // "2.100000", final points with level multiplier ('boost')
 
  sharePercent: string
  levelDescription: WaveLevelData
} | null
{
  level: number
  name: WaveLevelName
  boost: string
  pointsNeeded: string
  comment: string
}
enum WaveLevelName {
  Grey = 'Grey',
  Mist = 'Mist',
  Sky = 'Sky',
  Blue = 'Blue',
  Ultramarine = 'Ultramarine',
  Bright = 'Bright',
  Brilliant = 'Brilliant',
  Royal = 'Royal',
}