Developer Hub
🔮 For applications
SDK
Data Hooks
useWavePeriods

Hook is used to get the Wave Periods data.

ℹ️

This hook is a wrapper around getWavePeriods function.

Usage

import { useWavePeriods } from '@azuro-org/sdk'
 
const { data } = useWavePeriods()

Props

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

Return Value

UseQueryResult<WavePeriod[]>
import { type UseQueryResult } from '@tanstack/react-query'
 
type WavePeriod = {
  id: number
  startsAt: number
  endsAt: number
  totalPoints: string
  isBonusPreCalc: boolean
}