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.
API endpoint path, without host or query string (e.g. /v1/metrics/market/price_usd_close).
Most attempts this call can make: maxRetries + 1.
HTTP method. The Glassnode API is read-only, so this is always 'GET'.
Full request URL with the API key masked (api_key=***).
Fields shared by every hook event. Nothing in an event carries the API key:
urlis masked (api_key=***) and no request or response headers are exposed (so neither theX-Api-Keyheader nor x402 payment headers). Theerrorof an event is the same object the call rejects with, so the caveat on GlassnodeError applies: its.causeis not redacted.Treat every event as read-only. Each hook call gets a fresh event object, but
erroris the live error (inonError, the very object the caller's promise rejects with); it is neither frozen nor copied, so a hook that mutates it changes what the caller sees.