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.
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.
OptionaldurationDuration of the last attempt in ms; absent when no attempt was sent.
Milliseconds from the start of the call (first attempt, waits included) until it failed.
API endpoint path, without host or query string (e.g. /v1/metrics/market/price_usd_close).
The error the call rejects with — the same live object the caller receives, so do not mutate it (a change would be visible to the caller).
Most attempts this call can make: maxRetries + 1.
HTTP method. The Glassnode API is read-only, so this is always 'GET'.
OptionalstatusHTTP status behind the error, when there is one (GlassnodeApiError, GlassnodePaymentError).
Full request URL with the API key masked (api_key=***).
onError: the call failed — fired once per call, with the error it rejects with.