Search in sources :

Example 1 with RpcClient

use of com.samourai.soroban.client.rpc.RpcClient in project sparrow by sparrowwallet.

the class Soroban method getSorobanCahootsService.

public SorobanCahootsService getSorobanCahootsService(CahootsWallet cahootsWallet) {
    IHttpClient httpClient = httpClientService.getHttpClient(HttpUsage.COORDINATOR_REST);
    RpcClient rpcClient = new RpcClient(httpClient, httpClientService.getTorProxy() != null, sorobanServer.getParams());
    return new SorobanCahootsService(bip47Util, PROVIDER_JAVA, cahootsWallet, rpcClient);
}
Also used : IHttpClient(com.samourai.http.client.IHttpClient) SorobanCahootsService(com.samourai.soroban.client.cahoots.SorobanCahootsService) RpcClient(com.samourai.soroban.client.rpc.RpcClient)

Aggregations

IHttpClient (com.samourai.http.client.IHttpClient)1 SorobanCahootsService (com.samourai.soroban.client.cahoots.SorobanCahootsService)1 RpcClient (com.samourai.soroban.client.rpc.RpcClient)1