glassnode-api - v0.29.3
    Preparing search index...

    Interface GlassnodeRetryEvent

    onRetry: an attempt failed with a retryable error and the client will retry after a wait.

    interface GlassnodeRetryEvent {
        attempt: number;
        callId: number;
        delayMs: number;
        durationMs: number;
        endpoint: string;
        error: GlassnodeError;
        maxAttempts: number;
        method: "GET";
        reason: GlassnodeRetryReason;
        status?: number;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    attempt: number

    1-based number of the attempt the event is about. For onError, the last attempt made, or 0 when the call was cancelled before its first attempt.

    callId: number

    Correlation id of the call: every event of one method call (all its attempts and retries) carries the same id, and no other call in this JavaScript realm has it. A process-local counter — add your own prefix if ids must be unique across processes.

    delayMs: number

    Milliseconds the client waits before the next attempt (attempt + 1).

    durationMs: number

    Milliseconds from sending the failed attempt until it failed.

    endpoint: string

    API endpoint path, without host or query string (e.g. /v1/metrics/market/price_usd_close).

    The failed attempt's error (a GlassnodeApiError or GlassnodeNetworkError). The live object, not a copy — read-only.

    maxAttempts: number

    Most attempts this call can make: maxRetries + 1.

    method: "GET"

    HTTP method. The Glassnode API is read-only, so this is always 'GET'.

    'status' for a 429/5xx response, 'timeout' when the per-attempt timeout fired, 'network' for any other transport failure.

    status?: number

    HTTP status of the failed attempt, for reason: 'status'.

    url: string

    Full request URL with the API key masked (api_key=***).