⚠️
Important! We’ve moved to V3! This documentation is for V2 only and will be updated in May.
Developer Hub
🔮 For applications
Toolkit
Azuro Waves
getWaveLevels

Returns the Wave Levels data.

Usage

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

Props

{
  waveId?: WaveId
  chainId?: ChainId
}
type WaveId = number | 'active'
 
type ChainId = 
  | 100     // Gnosis
  | 137     // Polygon
  | 80002   // Polygon Amoy
  | 88888   // Chiliz
  | 88882   // Chiliz Spicy
  | 8453    // Base
  | 84532   // Base Sepolia

Return Value

Array<{
  level: number
  name: WaveLevelName
  boost: string
  pointsNeeded: string
  comment: string
}> | null
enum WaveLevelName {
  Grey = 'Grey',
  Mist = 'Mist',
  Sky = 'Sky',
  Blue = 'Blue',
  Ultramarine = 'Ultramarine',
  Bright = 'Bright',
  Brilliant = 'Brilliant',
  Royal = 'Royal',
}