diff --git a/src/api-client.ts b/src/api-client.ts index da906987..e6bd356a 100644 --- a/src/api-client.ts +++ b/src/api-client.ts @@ -14,10 +14,11 @@ export class ApiClient { baseURL: this.apiBaseUrl, proxy: this.options?.proxy, timeout: this.options?.timeoutInMs, + httpsAgent: this.options?.httpsAgent, headers: { "X-API-Key": this.authProvider.getApiKey(), "User-Agent": this.getUserAgent() - } + }, }); if (options?.customAxiosOptions?.interceptors?.response) { diff --git a/src/fireblocks-sdk.ts b/src/fireblocks-sdk.ts index d5d25bfd..9d984397 100644 --- a/src/fireblocks-sdk.ts +++ b/src/fireblocks-sdk.ts @@ -155,6 +155,9 @@ export interface SDKOptions { /** Additional product identifier to be prepended to the User-Agent header */ userAgent?: string; + /** Replace default https agent */ + httpsAgent?: any + /** * Providing custom axios options including a response interceptor (https://axios-http.com/docs/interceptors) */