Bitnet.Client.BitnetClient.WalletPassphrase C# (CSharp) Method

WalletPassphrase() public method

public WalletPassphrase ( string a_passphrase, int a_unlock_period_seconds = 1 ) : Newtonsoft.Json.Linq.JObject
a_passphrase string
a_unlock_period_seconds int
return Newtonsoft.Json.Linq.JObject
        public JObject WalletPassphrase(string a_passphrase, int a_unlock_period_seconds = 1)
        {
            JObject j = new JObject();
            try
            {
            InvokeMethod("walletpassphrase", a_passphrase, a_unlock_period_seconds);
            }
            catch (WebException ex)
            {
            WebResponse resp = ex.Response as HttpWebResponse;
            Stream str = resp.GetResponseStream();
            StreamReader sr = new StreamReader(str);
            j = JsonConvert.DeserializeObject<JObject>(sr.ReadToEnd());
            }
            return j;
        }