Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 690 Bytes

File metadata and controls

18 lines (14 loc) · 690 Bytes

Configuring the Client

The Typescript wallet SDK uses the axios client for all network requests. Learn more in the Axios instance documentation.

For example, we can configure our axios client to be globally configured with a timeout:

const customClient: AxiosInstance = axios.create({
  timeout: 1000,
});
let appConfig = new ApplicationConfiguration(DefaultSigner, customClient);
let wal = new Wallet({
  stellarConfiguration: StellarConfiguration.TestNet(),
  applicationConfiguration: appConfig,
});

You can find more configure options here.