Skip to content
LogoLogo

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: 42n

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 42

Return Value

type ReturnType = bigint

The 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.