The client to use. AvalancheCoreClient
Optional tags to filter health checks. HealthParameters
The health check results. HealthReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { health } from '@avalanche-sdk/client/methods/health'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const healthStatus = await health(client, {
tags: ["11111111111111111111111111111111LpoYY", "29uVeLPJB1eQJkzRemU8g8wZDw5uJRqpab5U2mX9euieVwiEbL"]
})
Returns the last set of health check results for the node. This includes checks for all chains, network, database, and other components.