Hook is used to Activate User Levels.
ℹ️
This hook is a wrapper around activateWave function.
Usage
import { useWaveActivation } from '@azuro-org/sdk'
const { activate } = useWaveActivation()
await activate()
Props
{
account: Address
waveId?: WaveId
}
type WaveId = number | 'active'
Return Value
{
activate: UseMutateFunction
activateAsync: UseMutateAsyncFunction
isPending: boolean
}
import { UseMutateFunction, UseMutateAsyncFunction } from '@tanstack/react-query'