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

    Interface APIProvider

    interface APIProvider {
        call(
            args: { method?: APIMethods; params?: unknown; path: string },
        ): Promise<APIResponse>;
    }

    Implemented by

    Index
    • Call an API endpoint and return the response. Provider is responsible for JSON encoding the params and decoding the response.

      Parameters

      • args: { method?: APIMethods; params?: unknown; path: string }

      Returns Promise<APIResponse>

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

      params The request body if any.