Binance Web3 Connector JS
    Preparing search index...

    Variable shouldRetryRequestConst

    shouldRetryRequest: (
        error: AxiosError | object,
        method?: string,
        retriesLeft?: number,
    ) => boolean

    Determines whether a request should be retried based on the provided error.

    This function checks the HTTP method, response status, and number of retries left to determine if a request should be retried.

    Type Declaration

      • (error: AxiosError | object, method?: string, retriesLeft?: number): boolean
      • Parameters

        • error: AxiosError | object

          The error object to check.

        • Optionalmethod: string

          The HTTP method of the request (optional).

        • OptionalretriesLeft: number

          The number of retries left (optional).

        Returns boolean

        true if the request should be retried, false otherwise.