Function isNodeHealthy

  • Check whether the node is healthy.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<boolean>

    A Promise that resolves to a boolean stating that the node is healthy or not.

    Throws

    An error that occurred while processing the request.