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

    Interface GlassnodeResponseEvent

    onResponse: an attempt got an HTTP response — any status, including non-2xx.

    interface GlassnodeResponseEvent {
        attempt: number;
        callId: number;
        durationMs: number;
        endpoint: string;
        maxAttempts: number;
        method: "GET";
        ok: boolean;
        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.

    durationMs: number

    Milliseconds from sending the attempt until its response headers arrived.

    endpoint: string

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

    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'.

    ok: boolean

    True for a 2xx status (Response.ok).

    status: number

    HTTP status of the response.

    url: string

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