Developer Hub
🔮 For applications
SDK
Data Hooks
useWaveStats

Hook is used to get the Wave User Stats data.

ℹ️

This hook is a wrapper around getWaveStats function.

Usage

import { useWaveStats } from '@azuro-org/sdk'
 
const { data } = useWaveStats({
  account: '0xkn123k...'
})

Props

{
  account: Address
  waveId?: WaveId
}
type WaveId = number | 'active'

Return Value

UseQueryResult<WaveStats>
import { type UseQueryResult } from '@tanstack/react-query'
 
type WaveStats = {
  waveId: number
  isActivated: boolean
  initialLevel: number
  level: number
 
  // points by categories
  betPoints: string
  dexPoints: string
  liqudityPoints: string
  stakingPoints: string
  leaderboardPoints: string
  manualPoints: string
  points: string
  multipliedPoints: string
 
  sharePercent: string
  levelDescription: WaveLevelData
}