public static Task <MoneroWalletClient> CreateAsync(MoneroNetwork networkType, string filename, string password, CancellationToken cancellationToken = default) { var moneroWalletClient = new MoneroWalletClient(networkType); return(moneroWalletClient.InitializeAsync(filename, password, cancellationToken)); }
/// <summary> /// Initialize a Monero Wallet Client using default network settings (<localhost>:<defaultport>), opening the wallet while doing so. /// </summary> public static Task <MoneroWalletClient> CreateAsync(string url, uint port, string filename, string password, CancellationToken cancellationToken = default) { var moneroWalletClient = new MoneroWalletClient(url, port); return(moneroWalletClient.InitializeAsync(filename, password, cancellationToken)); }