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> /// Returns information of the Node in a JSON Object /// </summary> /// <returns>JSON Object with information</returns> public static Task <NodeStatus> NodeStatusAsync(this IPascalCoinClient client) { return(Task.Run(() => client.NodeStatus())); }