@wharfkit/session - v4.0.1
    Preparing search index...

    Class FetchProvider

    Default provider that uses the Fetch API to call a single node.

    Implements

    Index
    fetch: Fetch
    headers: Record<string, string>
    url: string
    • Call an API endpoint and return the response. Provider is responsible for JSON encoding the params and decoding the response.

      Parameters

      • args: {
            headers?: Record<string, string>;
            method?: APIMethods;
            params?: unknown;
            path: string;
        }

      Returns Promise<{ headers: {}; json: any; status: any; text: any }>

      path The endpoint path, e.g. /v1/chain/get_info

      params The request body if any.