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;
}