Closed sneurlax closed 2 months ago
Here's an example of how we use this change in Stack Wallet:
HttpClient? _httpClient; if (prefs.useTor) { final ({InternetAddress host, int port}) proxyInfo = TorService.sharedInstance.getProxyInfo(); _httpClient = HttpClient(); SocksTCPClient.assignToHttpClient( _httpClient!, [ProxySettings(proxyInfo.host, proxyInfo.port)]); } else { _httpClient = null; } _stellarSdk = stellar.StellarSDK("${currentNode.host}:${currentNode.port}", httpClient: _httpClient);
Then we use StellarSDK as normal.
Closes #91
Hello @sneurlax, thank you for adding the optional HttpClient param!
Here's an example of how we use this change in Stack Wallet:
Then we use StellarSDK as normal.