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

    Type Alias GlassnodeFetch

    GlassnodeFetch: (input: string, init?: RequestInit) => Promise<Response>

    Type of the fetch config option: the call the client makes. It is only ever called with a string URL, as fetch(url) or fetch(url, init), and must resolve to a standard Response. When init carries the X-Api-Key header it also sets redirect: 'manual'; a custom fetch should honour it (or not follow redirects at all) so the key never reaches another origin. globalThis.fetch, vi.fn() mocks, the fetch from createX402Fetch() and string-only custom fetches ((url: string, init?: RequestInit) => Promise<Response>) all fit.

    Type Declaration

      • (input: string, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string
        • Optionalinit: RequestInit

        Returns Promise<Response>