The client to use. AvalancheCoreClient
Optional tags to filter readiness checks. ReadinessParameters
The readiness check results. ReadinessReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { readiness } from '@avalanche-sdk/client/methods/health'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const readinessStatus = await readiness(client, {
tags: ["11111111111111111111111111111111LpoYY"]
})
Returns the last evaluation of the startup health check results. This indicates if the node has finished initializing and is ready to handle requests.