Get Next Full DKG Ceremony
validator.getNextFullDkgCeremony
Gets the next epoch for a full DKG ceremony.
Usage
import { } from './viem.config'
const = await ..()
.('Result:', )
Result: 42nimport { , } from 'viem/tempo'
export const = .({
: .('0x...'),
})Recipes
Alert Operators Ahead of a Ceremony
Combine the scheduled epoch with validator.get so operators of active validators keep their nodes online for the ceremony.
import { } from './viem.config'
const = await ..()
const { } = await ..({
: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEbb', // your validator
})
if () .(`Keep the node online for epoch ${}`)
Keep the node online for epoch 42import { , } from 'viem/tempo'
export const = .({
: .('0x...'),
})Return Value
type ReturnType = bigintThe next epoch for a full DKG ceremony.
Parameters
blockNumber (optional)
- Type:
bigint
Block number to read the state from.
blockOverrides (optional)
- Type:
BlockOverrides
Block overrides to apply to the state.
blockTag (optional)
- Type:
BlockTag
Block tag to read the state from.
stateOverride (optional)
- Type:
StateOverride
State override to apply.