Developer Hub
🔮 For applications
Toolkit
Azuro Waves
getWavePeriods

Returns the Wave Periods data.

Usage

import { getWavePeriods } from '@azuro-org/toolkit'
 
const periods = await getWavePeriods()

Props

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

Return Value

Array<{
  id: number
  startsAt: string // ISO String "2024-05-13T00:00:00.000Z"
  endsAt: string // ISO String "2024-05-20T00:00:00.000Z". It's a startsAt of next period
  totalPoints: string
  waveId: number
}> | null