Avalanche SDK Client
    Preparing search index...

    Function getActiveRulesAt

    • Get the active rules at a specific timestamp.

      Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<GetActiveRulesAtReturnType>

      The active rules at the specified timestamp. GetActiveRulesAtReturnType

      import { createClient, http } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { getActiveRulesAt } from '@avalanche-sdk/client/methods/public'

      const client = createClient({
      chain: avalanche,
      transport: http(),
      })

      const activeRules = await getActiveRulesAt(client, { timestamp: "0x1" })