HealthParameters Optional tags to filter health checks
The health check results. HealthReturnType
import { createAvalancheClient} from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
const client = createAvalancheClient({
chain: avalanche,
transport: {
type: "http",
},
})
const healthStatus = await client.health.health({
tags: ["11111111111111111111111111111111LpoYY", "29uVeLPJB1eQJkzRemU8g8wZDw5uJRqpab5U2mX9euieVwiEbL"]
})
Returns a simple health check indicating if the node is alive and can handle requests. This is a lightweight check that always returns healthy if the endpoint is available.
The liveness check results. LivenessReturnType
Returns the last evaluation of the startup health check results. This indicates if the node has finished initializing and is ready to handle requests.
ReadinessParameters Optional tags to filter readiness checks
The readiness check results. ReadinessReturnType
import { createAvalancheClient} from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
const client = createAvalancheClient({
chain: avalanche,
transport: {
type: "http",
},
})
const readinessStatus = await client.health.readiness({
tags: ["11111111111111111111111111111111LpoYY"]
})
Returns the last set of health check results for the node. This includes checks for all chains, network, database, and other components.