The client to use.
The timestamp to get the active rules at. GetActiveRulesAtParameters
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" })
Get the active rules at a specific timestamp.