internal UnlockWalletScope(IPascalCoinClient client, string password) { _client = client; _ignore = !_client.NodeStatus().Locked; if (!_ignore) { if (!_client.Unlock(password)) { throw new PascalCoinRPCException("Unable to unlock wallet"); } } }
/// <summary> /// Unlocks a locked Wallet using "pwd" param /// </summary> /// <param name="pwd"></param> /// <returns>Returns a Boolean indicating if Wallet is unlocked after using pwd password</returns> public static Task <bool> UnlockAsync(this IPascalCoinClient client, string pwd) { return(Task.Run(() => client.Unlock(pwd))); }